Support RuntimeDescriptorArray when ingesting SPIR-V #6423
Labels
area: naga front-end
help required
We need community help to make this happen.
lang: SPIR-V
Vulkan's Shading Language
naga
Shader Translator
type: enhancement
New feature or request
While testing "slang" as a shader language, I produced SPIR-V that contained unbound texture arrays (for which I would write a binding array in WGSL):
When compiling the shader with this SPIR-V using the
include_spirv!()
macro, I get the following validation error:It would be great if naga could ingest SPIR-V that use runtime descriptor arrays.
PS: When bounding the txture array, naga will happily accept the SPIR-V and wgpu will run the shader. Since it seems that wgpu does not properly do bounds checking, the shader will work as if it was boundless (which could be seens as kind of a workaround).
The text was updated successfully, but these errors were encountered: