Merge pull request #1752 from adriadam10/fix/spirv-validator-friendly-names

perf(shader): skip friendly names when validating SPIR-V
This commit is contained in:
Adrià
2026-10-08 20:40:55 +02:00
committed by GitHub
@@ -86,6 +86,7 @@ std::vector<std::uint32_t> ValidateAndOptimizeSpirv(std::span<const std::uint32_
tools.SetMessageConsumer(consumer);
spvtools::ValidatorOptions validatorOptions;
validatorOptions.SetAllowOffsetTextureOperand(allowOffsetTextureOperand);
validatorOptions.SetFriendlyNames(false);
if (!tools.Validate(spirv.data(), spirv.size(), validatorOptions)) {
throw std::runtime_error("SPIR-V validation before optimization failed:\n" + diagnostics);
}