wgpu::Device::create_shader_module() panics on trivial SPIRV input #2658
Labels
area: validation
Issues related to validation, diagnostics, and error handling
external: upstream
Issues happening in lower level APIs or platforms
type: enhancement
New feature or request
Hi! Not sure if I should create this issue here or in
naga
repo, please let me know if I should recreate it there.Anyway, when I compile a trivial GLSL shader
to spirv using
glslangValidator
, creating a shader module panics with the following callstack:Here is human-readable SPIRV dump (via
-H
command arg):Output of
glslangValidator.exe -v
isRepro steps
glslangValidator.exe
, full command line isExpected vs observed behavior
I'm not sure I'd expect such a shader to produce a shader module without any errors (initially I wrote a simple, but non-empty shader and reduced the repro case to the trivial one), but
Platform
OS: Windows 11
wgpu version: 0.12
Thanks!
The text was updated successfully, but these errors were encountered: