Uncaught (in promise) ReferenceError: GPUShaderStage is not defined
<anonymous> https://gnikoloff.github.io/webgpu-sponza-demo/assets/index-BeB41sTJ.js:422
<anonymous> https://gnikoloff.github.io/webgpu-sponza-demo/assets/index-BeB41sTJ.js:2288 Uncaptured WebGPU error: Shader module creation failed: Parsing error
Encountered one or more errors while creating shader module "Update Lights Shader Module"
WebGPU compilation info for shader module "Update Lights Shader Module" (1 error(s), 0 warning(s), 0 info)
Shader 'Update Lights Shader Module' parsing error: unknown attribute: 'must_use'
┌─ wgsl:44:4
│
44 │ @must_use
│ ^^^^^^^^ unknown attribute
Uncaptured WebGPU error: ShaderModule with 'Update Lights Shader Module' label is invalid
looks like this happens for most of the shaders.edit: seems to be related to this issue https://github.com/gfx-rs/wgpu/issues/5186
Uncaught (in promise) DOMException: WebGPU is not yet available in Release or Beta builds. initialize https://gnikoloff.github.io/webgpu-sponza-demo/assets/index-... <anonymous> https://gnikoloff.github.io/webgpu-sponza-demo/assets/index-... <anonymous> https://gnikoloff.github.io/webgpu-sponza-demo/assets/index-...
edit: I see you also wrote a webgpu ray tracer, very impressive! I am slowly working on a browser based 3d game in my spare time, your projects are right on my interests. I see you used MIT license on your ray tracer, do you have a license for the sponza demo?
WebGPT has entered the chat.
Out of curiosity, are there any of these features that couldn't be done with WebGL 2?