ShaderValidation error: Not implemented: variable qualifier #5994
Labels
area: naga front-end
lang: GLSL
OpenGL Shading Language
lang: SPIR-V
Vulkan's Shading Language
naga
Shader Translator
type: enhancement
New feature or request
Description
wgpu
- 22.0naga
/naga-cli
- 22.0I'm having interesting issues with implementing a shader for use with
wgpu
.The basic concept is glsl ->
glslc
-> spv ->naga
-> wgsl or import thespv
files directly with the naga-backend.During this process, I run into various errors when attempting to translate the shader.
If this is an storage type compatibility issue, is there a way to have
naga
explain which type?Repro steps
spv
created as follows:This fails on the cli directly which produces the same error when calling
create_shader_module
inwgpu
:This produces valid glsl:
But when attempting to use
naga
:I suspect this is an image compatibility issue? According to the SPIR-V spec here,
%11
must be referring to an image.Expected vs observed behavior
No errors vs having them
Extra materials
Zip containing the
spv
fromglslc
and thespirv-cross
glsl
luma_shaders_cross.zip
Platform
Linux / Ubuntu
The text was updated successfully, but these errors were encountered: