Open Bug 1863457 Opened 1 year ago Updated 17 minutes ago

[webGPU] Demo at https://math.hws.edu/graphicsbook/demos/c9/diffusion-demo.html does not draw anything on Nightly

Categories

(Core :: Graphics: WebGPU, defect, P3)

defect

Tracking

()

People

(Reporter: mayankleoboy1, Unassigned)

References

(Depends on 1 open bug, Blocks 2 open bugs, )

Details

enable webgpu
Go to https://math.hws.edu/graphicsbook/demos/c9/
Open any demo

AR: Demo does not run

Blocks: webgpu-apps
Severity: -- → S3
Priority: -- → P3

Looks like most of the errors are related to abstract types.

FWIW, as of today, across all the "chapter" on the FTP site, only this demo doesnt run:

https://math.hws.edu/graphicsbook/demos/c9/diffusion-demo.html

16:55:22.151
Encountered one or more errors while creating shader module
16:55:22.151
WebGPU compilation info for shader module (1 error(s), 0 warning(s), 0 info)
16:55:22.151

Shader validation error:
┌─ :18:16

18 │ return colors[colorIndex];
│ ^^^^^^^^^^^^^^^^^^ naga::Expression [13]

Summary: [webGPU] None of the demos on https://math.hws.edu/graphicsbook/demos/c9/ draw anything in Nightly → [webGPU] Demo at https://math.hws.edu/graphicsbook/demos/c9/diffusion-demo.html does not draw anything on Nightly

10:04:41.057 injected firefox content.js:142:11
10:04:41.682
Encountered one or more errors while creating shader module
10:04:41.682
WebGPU compilation info for shader module (1 error(s), 0 warning(s), 0 info)
10:04:41.682

Shader validation error:
┌─ :18:16

18 │ return colors[colorIndex];
│ ^^^^^^^^^^^^^^^^^^ naga::Expression [12]

Profile with webgpu preset logging: https://share.firefox.dev/3ZsOSAJ

Error in webdev console:

18:23:52.132 injected firefox content.js:142:11
18:23:52.196
Encountered one or more errors while creating shader module
18:23:52.196
WebGPU compilation info for shader module (1 error(s), 0 warning(s), 0 info)
18:23:52.196

Shader '' parsing error: invalid switch value
   ┌─ wgsl:40:18
   │
40 │             case 0 {
   │                  ^ expected unsigned integer
   │
   = note: suffix the integer with a `u`: '0u'
Depends on: 1829879
You need to log in before you can comment on or make changes to this bug.