Open Bug 1844709 (webgpu-labels) Opened 1 year ago Updated 7 months ago

Show `GPUObject.label` where applicable in WebGPU errors

Categories

(Core :: Graphics: WebGPU, enhancement, P2)

enhancement

Tracking

()

People

(Reporter: ErichDonGubler, Unassigned)

References

(Blocks 2 open bugs)

Details

GPUObjectBase is useful primarily for its label field. This label is usually a user-provided value set by descriptors that are used to construct objects (i.e., as a GPUDescriptorBase.label). The spec. strongly encourages us to use these labels in the debugging experience we build for WebGPU users in Firefox.

…and we currently don't use these labels hardly at all in WebGPU diagnostics in Firefox! We should fix this as an important part of Firefox's usability story with the WebGPU API.

This is likely to become a meta-bug, since the breadth of errors in WebGPU is vast. It's unlikely that a single patch series will be a tractable way to resolve the above.

Blocks: 1827953
No longer blocks: webgpu-v1
See Also: 1827953

Possibly related/to implement as part of this bug: https://github.com/gfx-rs/wgpu/issues/3790

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