perf(shader): skip friendly names when validating SPIR-V

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Adrià Franch
2026-10-08 20:32:24 +02:00
parent 4ddbf0497d
commit b7baeabfc5
@@ -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);
}