Using inverse
in GLSL appears to cause an issue when parsing resulting WGSL (wgpu v0.8.1)
#893
Labels
area: front-end
Input formats for conversion
help wanted
Extra attention is needed
kind: feature
New feature or request
lang: SPIR-V
Binary SPIR-V input and output
While updating one of nannou's camera/teapot examples from 0.7 to 0.8.1, I ran into the following parser error:
The issue seems to be related to the use of the GLSL
inverse
function within the example's vertex shader:Here's the SPIR-V generated via
glslangValidator
:If I remove the
inverse
call the shader appears to pass validation successfully.Tested on NixOS, GNOME Wayland.
Possibly related:
gfx-rs/wgpu#4330
#469
gfx-rs/wgpu#4336
The text was updated successfully, but these errors were encountered: