More string switching.
This commit is contained in:
@@ -95,7 +95,7 @@ ID3D10Blob* D3D11GeometryShader::Compile(const char* shader_source) {
|
||||
if (FLAGS_dump_shaders.size()) {
|
||||
base_path = FLAGS_dump_shaders.c_str();
|
||||
}
|
||||
uint64_t hash = xe_hash64(shader_source, xestrlena(shader_source)); // ?
|
||||
uint64_t hash = xe_hash64(shader_source, strlen(shader_source)); // ?
|
||||
char file_name[poly::max_path];
|
||||
xesnprintfa(file_name, XECOUNT(file_name),
|
||||
"%s/gen_%.16llX.gs",
|
||||
|
||||
@@ -203,7 +203,7 @@ bool D3D11ProfilerDisplay::SetupShaders() {
|
||||
ID3DBlob* vs_code_blob = nullptr;
|
||||
ID3DBlob* vs_errors = nullptr;
|
||||
hr = D3DCompile(
|
||||
shader_code, xestrlena(shader_code),
|
||||
shader_code, strlen(shader_code),
|
||||
"D3D11ProfilerDisplay.vs",
|
||||
nullptr,
|
||||
nullptr,
|
||||
@@ -229,7 +229,7 @@ bool D3D11ProfilerDisplay::SetupShaders() {
|
||||
ID3DBlob* ps_code_blob = nullptr;
|
||||
ID3DBlob* ps_errors = nullptr;
|
||||
hr = D3DCompile(
|
||||
shader_code, xestrlena(shader_code),
|
||||
shader_code, strlen(shader_code),
|
||||
"D3D11ProfilerDisplay.ps",
|
||||
nullptr,
|
||||
nullptr,
|
||||
|
||||
@@ -46,7 +46,7 @@ ID3D10Blob* D3D11ShaderCompile(XE_GPU_SHADER_TYPE type,
|
||||
if (FLAGS_dump_shaders.size()) {
|
||||
base_path = FLAGS_dump_shaders.c_str();
|
||||
}
|
||||
size_t hash = xe_hash64(disasm_source, xestrlena(disasm_source)); // ?
|
||||
size_t hash = xe_hash64(disasm_source, strlen(disasm_source)); // ?
|
||||
char file_name[poly::max_path];
|
||||
xesnprintfa(file_name, XECOUNT(file_name),
|
||||
"%s/gen_%.16llX.%s",
|
||||
|
||||
Reference in New Issue
Block a user