[spv-out] wrapping struct types for globals lack required decorations #1810
Labels
area: back-end
Outputs of shader conversion
kind: bug
Something isn't working
lang: SPIR-V
Binary SPIR-V input and output
Naga IR permits globals to have non-struct types, but Vulkan requires that globals in the
Uniform
andStorage
storage classes be struct types. Our SPIR-V backend accommodates this by synthesizing SPIR-V struct types wrapping the contents of Naga globals as needed, but it fails to apply decorations required on members that are matrices or arrays of matrices.For example, the following WGSL input generates SPIR-V that fails to validate:
This fails validation in the
vulkan1.0
target environment:The text was updated successfully, but these errors were encountered: