Use spvValidatorOptionsSetBeforeHlslLegalization for pre-legalized HLSL

This commit is contained in:
Jeff Bolz
2019-06-07 14:42:08 -05:00
parent d3692c701b
commit fd556e32b3
4 changed files with 8 additions and 5 deletions

View File

@@ -66,7 +66,7 @@ void SpirvToolsDisassemble(std::ostream& out, const std::vector<unsigned int>& s
// Apply the SPIRV-Tools validator to generated SPIR-V.
void SpirvToolsValidate(const glslang::TIntermediate& intermediate, std::vector<unsigned int>& spirv,
spv::SpvBuildLogger*);
spv::SpvBuildLogger*, bool prelegalization);
// Apply the SPIRV-Tools optimizer to generated SPIR-V, for the purpose of
// legalizing HLSL SPIR-V.