mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-10 01:28:44 +02:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user