Open Bug 1929157 Opened 1 year ago Updated 1 year ago

[WebGPU] Clear color does not work on noclip.website

Categories

(Core :: Graphics: WebGPU, defect)

defect

Tracking

()

People

(Reporter: jstpierre, Unassigned)

References

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

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:131.0) Gecko/20100101 Firefox/131.0

Steps to reproduce:

Visit https://noclip.website/?webgpu

Actual results:

The background is white.

Expected results:

The background should be black. I assume there are issues with empty clear passes getting stripped out.

Blocks: webgpu-apps
Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true

The actual issue here appears to be that Firefox doesn't implement alphaMode: 'opaque'. In this case, I'm actually not drawing anything to the canvas, which means it should have a transparent black image, which should become opaque black when presented to the screen given alphaMode: 'opaque'.

This is more obvious if you open up DevTools and set the body's background-color to red.

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