Disable glslang use for SPIR-V compilation until it's proven more stable

This commit is contained in:
baldurk
2015-07-11 22:37:47 +02:00
parent 560c95cdc6
commit 233c8d07d6
2 changed files with 8 additions and 0 deletions
@@ -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<>