Open Bug 1834395 (webgpu-rgba16float) Opened 2 years ago Updated 3 months ago

WebGPU: Support `rgba16float` texture format in `GPUCanvasConfiguration`s

Categories

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

task

Tracking

()

People

(Reporter: ErichDonGubler, Unassigned)

References

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

Details

(Keywords: leave-open)

Attachments

(1 file)

rgba16float is a “supported context format” per section 21.4 of the current WebGPU v1 spec. draft (GPUCanvasConfiguration). We currently don't support it, and we need to!

We have failures in CTS right now where specifying GPUCanvasConfiguration.format = "rgba16float" to GPUCanvasContext.configureCanvas causes CanvasContext.cpp:CanvasContext::Configure in C++ to run into this lack of support. I don't see an immediate match for the layout of data in rgba16float in gfx::SurfaceFormat's variants, but that's what we'll need in order to fully support this.

:jgilbert has indicated that she's already got patches in the works to fix this. Assigning to her.

Assignee: nobody → jgilbert
Status: NEW → ASSIGNED
Severity: -- → S3
No longer depends on: webgpu-v1-cts-windows
Priority: -- → P3
See Also: → webgpu-v1-cts-windows
Assignee: jgilbert → nobody
Status: ASSIGNED → NEW
Alias: webgpu-v1-rgba16float → webgpu-rgba16float
Summary: WebGPU: Support `rgba16float` texture format → WebGPU: Support `rgba16float` texture format in `GPUCanvasConfiguration`s
Duplicate of this bug: 1967329

As noted in bug 1967329, the error here will now be TypeError: GPUCanvasContext.configure: Canvas texture format 'rgba16float' is not yet supported. Subscribe to <https://bugzilla.mozilla.org/show_bug.cgi?id=1967329> for updates on its development in Firefox.

I am also going to reference this bug from the (commented out) toneMapping and colorSpace members of GPUCanvasConfiguration.

Firefox isn't going to have the underlying support for presenting rgba16float textures in 2025H1, so this bug is no longer considered a webgpu-mvp blocker.

No longer blocks: webgpu-official-samples

Having rgba16float available would be more than awesome. Currently I develop a spatial audio web app with an HDR visualizer. HDR display technology is available on many devices. I'd be happy to assist in testing as a developer and as a colorist on my calibrated monitors in any available color spaces. Best from Berlin, Gabriel

Assignee: nobody → egubler
Status: NEW → ASSIGNED
Assignee: egubler → nobody
Status: ASSIGNED → NEW
Keywords: leave-open
Assignee: nobody → egubler
Status: NEW → ASSIGNED
Pushed by egubler@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/14bf9ed1fb4f https://hg.mozilla.org/integration/autoland/rev/2dddc5019c08 chore(webgpu): update bug ref. for `rgba16float` canvas texture format r=webgpu-reviewers,teoxoy
Assignee: egubler → nobody
Status: ASSIGNED → NEW
Depends on: 1883748
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: