Skip to content

Commit

Permalink
SPIRVTools: do not run SPIRV validation in release build
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMostDiligent committed Jan 19, 2025
1 parent 68e441e commit 2de861f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Graphics/ShaderTools/src/SPIRVTools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ std::vector<uint32_t> OptimizeSPIRV(const std::vector<uint32_t>& SrcSPIRV, spv_t
SpirvOptimizer.SetMessageConsumer(SpvOptimizerMessageConsumer);

spvtools::OptimizerOptions Options;
#ifndef DILIGENT_DEVELOPMENT
// Do not run validator in release build
Options.set_run_validator(false);
#endif

// SPIR-V bytecode generated from HLSL must be legalized to
// turn it into a valid vulkan SPIR-V shader.
Expand Down

0 comments on commit 2de861f

Please sign in to comment.