Open Bug 1877110 Opened 2 years ago Updated 5 months ago

Codepen webgpu demo (https://codepen.io/bclarke/pen/ZEmGoog) doesnt work on Nightly

Categories

(Core :: Graphics: WebGPU, defect)

defect

Tracking

()

People

(Reporter: mayankleoboy1, Unassigned)

References

(Blocks 1 open bug, )

Details

Attachments

(2 files)

Go to https://codepen.io/bclarke/pen/ZEmGoog

ER: it renders
AR: nothing renders

Encountered one or more errors while creating shader module
14:27:31.802
WebGPU compilation info for shader module (1 error(s), 0 warning(s), 0 info)
14:27:31.802

Shader validation error:
┌─ :66:14

66 │ let zoom = max(0, (out_size - uv_l) / out_size) * smoothstep(out_size, size, uv_l);
│ ^^^ naga::Expression [69]

14:27:31.802 Error matching ShaderStages(VERTEX) shader requirements against the pipeline, caused by: Shader module is invalid
14:27:31.802 Pipeline is invalid
14:27:31.802 Bind group layout is invalid
14:27:31.804 In a set_pipeline command, caused by: Render pipeline Id(0,1,d3d12) is invalid
14:27:31.804 Command encoder is invalid

Severity: -- → S2

WebGPU is unreleased tech. Dropping Severity to S3 to remove from org tracking.

Severity: S2 → S3
Priority: -- → P1
Priority: P1 → --

NI'ing for root cause investigation, no promises on ETA.

Flags: needinfo?(egubler)

Looks like the shader being used by the page is blocked on bug 1829879; extracting the full shader and feeding it into Naga on latest WGPU trunk yields the following error message:

error:
   ┌─ in.wgsl:65:14
   │
65 │   let zoom = max(0, (out_size - uv_l) / out_size) * smoothstep(out_size, size, uv_l);
   │              ^^^ naga::Expression [68]

Entry point fs_main at Fragment is invalid:
        Expression [68] is invalid
        Argument [1] to Max as expression [67] has an invalid type.
Flags: needinfo?(egubler)

This bug mostly works for me now. However, the circular distortion that's supposed to follow the mouse has a different hue from what I see in Chrome. In Chrome, it's a dark purple, while in Firefox, it's a bright pink.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: