mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-10 16:51:04 +00:00
Disable glslang use for SPIR-V compilation until it's proven more stable
This commit is contained in:
@@ -134,6 +134,9 @@ TBuiltInResource DefaultResources =
|
||||
|
||||
string CompileSPIRV(SPIRVShaderStage shadType, const std::vector<std::string> &sources, vector<uint32_t> &spirv)
|
||||
{
|
||||
#if defined(RELEASE)
|
||||
return "SPIR-V disassembly disabled due to glslang instability";
|
||||
#else
|
||||
if(shadType >= eSPIRVInvalid)
|
||||
return "Invalid shader stage specified";
|
||||
|
||||
@@ -202,4 +205,5 @@ string CompileSPIRV(SPIRVShaderStage shadType, const std::vector<std::string> &s
|
||||
delete[] strs;
|
||||
|
||||
return errors;
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -49,6 +49,9 @@ static string OptionalFlagString(EnumType e)
|
||||
|
||||
void DisassembleSPIRV(SPIRVShaderStage shadType, const vector<uint32_t> &spirv, string &disasm)
|
||||
{
|
||||
#if defined(RELEASE)
|
||||
return;
|
||||
#else
|
||||
if(shadType >= eSPIRVInvalid)
|
||||
return;
|
||||
|
||||
@@ -678,6 +681,7 @@ void DisassembleSPIRV(SPIRVShaderStage shadType, const vector<uint32_t> &spirv,
|
||||
}
|
||||
|
||||
return;
|
||||
#endif
|
||||
}
|
||||
|
||||
template<>
|
||||
|
||||
Reference in New Issue
Block a user