News for hackers. Stuff that matters.
Re:WebGPU Tech Demo by sounds on Thursday December 19, 2024 @12:44PM (#42463897)
Firefox 133.0.3 fails with:

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
Re:WebGPU Tech Demo by ruined on Thursday December 19, 2024 @02:18PM (#42464791)
nightly with webgpu enabled gets farther, but still fails.

    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

Re:WebGPU Tech Demo by mrec on Thursday December 19, 2024 @12:50PM (#42463954)
WebGPU still isn't enabled in Firefox by default (it's behind the dom.webgpu.enabled flag)
Re:WebGPU Tech Demo by roskelld on Thursday December 19, 2024 @01:15PM (#42464212)
I tried setting the flag to true but I get this after sadly.

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-...

Re:WebGPU Tech Demo by mrec on Thursday December 19, 2024 @06:52PM (#42466990)
Ah, apologies - it does need that config flag, but it's also only available in Nightly builds.