Add strict_extension
option for SPIR-V frontend
#6507
Labels
area: naga front-end
lang: SPIR-V
Vulkan's Shading Language
naga
Shader Translator
type: enhancement
New feature or request
Is your feature request related to a problem? Please describe.
I am trying to convert a SPIR-V shader that uses a dynamic sampler array to wgsl.
However, the
OpExtension "SPV_EXT_descriptor_indexing"
instruction is not supported.Describe the solution you'd like
There could be a flag similar to
strict_capabilities
calledstrict_extensions
which could throw a warning for unsupported extensions. Or there could be some other flag to only allow certain extensions.Describe alternatives you've considered
My currently solution is to remove the
SPV_EXT_descriptor_indexing
extension. Although this new shader does succeed when passed through naga, it does not passspirv-val
.The disassembly of the shader in question
The text was updated successfully, but these errors were encountered: