-
I am currently developing a small webGPU game which I tested today in Firefox Nightly. Now I get this error: As far as I understand, the shader was validated by WebGPU and then converted to HLSL, but DX12 cannot compile the result? My vertex shader is not very complex, and I don't know, where a
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I found the reason. It was not the vertex shader, but a function used by the fragment shader with this signature: It's related to this issue: If I wrap the array into a struct, then everything works like expected. :) Thanks for your effort to bring WebGPU to Firefox. |
Beta Was this translation helpful? Give feedback.
I found the reason. It was not the vertex shader, but a function used by the fragment shader with this signature:
fn getNeighbors(textureCoordinate: vec2f) -> array<vec3f, 8>
It's related to this issue:
#6845
If I wrap the array into a struct, then everything works like expected. :)
Thanks for your effort to bring WebGPU to Firefox.