Do we need to call VaryingContext::validate
at all when #[cfg(not(feature = "validate"))]
?
#4490
Labels
area: validation
Issues related to validation, diagnostics, and error handling
naga
Shader Translator
If I understand correctly, when the
"validate"
feature is not enabled, we should only do enough work to produce aModuleInfo
the backends can use, and no more. Butnaga::valid::Validator::validate_entry_point
callsVaryingContext::validate
on the entry point's arguments and return value, and I don't see that that contributes anything to the finalModuleInfo
.Should those calls be protected by a
#[cfg(not(feature = "validate"))]
condition?The text was updated successfully, but these errors were encountered: