[WASM] Shader translation error for stage VERTEX | FRAGMENT | VERTEX_FRAGMENT: error: declarations for uniform webgl_35a293005ed3e100
are inside blocks webgl_f78cc1bc68a2432b
and webgl_9911ca27b46ea2fc
#4465
Labels
area: naga back-end
Outputs of naga shader conversion
lang: GLSL
OpenGL Shading Language
naga
Shader Translator
type: bug
Something isn't working
I'm trying to migrate my tutorial to support WASM, and I'm working on my lighting example and I'm running into a translation error. Here's the message that showed up in the console:
The code is on my
web2
branch: https://github.com/sotrh/learn-wgpu/tree/web2You should be able to reproduce the issue by cloning the
web2
branch and runningyarn dev
. You then go to http://127.0.0.1:8080/learn-wgpu (you'll get CORS issues if you use localhost). Then go the lighting tutorial and click the button on the bottom of the screen.I'm looking into easier ways to test the individual tutorials for WASM, but the
yarn dev
route definitely works.Here's the shader in question:
I'm using wgpu version 0.12.0
The text was updated successfully, but these errors were encountered: