Bad global type in WGSL causes create_shader_module
to panic, not return an error
#2583
Labels
area: validation
Issues related to validation, diagnostics, and error handling
type: bug
Something isn't working
If you call
wgpu_core::Global::create_shader_module
with WGSL that has avar<uniform>
of typemat2x2<f32>
, and an entry point that uses it, the module passes Naga validation, butwgpu_core::validation::Interface::new
panics.To reproduce:
Because
xform
has an unexpected type for a global, there is no entry created for it inInterface::new
'sresource_mapping
table, and then trying to push theEntryPoint::resources
entry formain
's use ofxform
panics.The text was updated successfully, but these errors were encountered: