Unable to define constant vertices array in WGSL for usage in GLSL #1638
Labels
area: back-end
Outputs of shader conversion
kind: bug
Something isn't working
lang: GLSL
OpenGL Shading Language
I'm drawing several instances of vertices which are statically defined in a vertex shader. The shader below works perfectly with Vulkan and WebGPU (with Vulkan) but not with OpenGL.
This translates to GLSL to the following which is missing the vertices:
Instead of
var<private>´ I also tried
letwhich did not work because
vertex_idxin
VERTICES[vertex_idx];` would be requred to be a const. I'm opening this issue because the behavior is different.The text was updated successfully, but these errors were encountered: