Open Bug 1766945 Opened 2 years ago Updated 4 days ago

In WebGPU objects, move `mRawId` to `ObjectBase`

Categories

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

enhancement

Tracking

()

People

(Reporter: jimb, Unassigned)

References

(Blocks 1 open bug)

Details

Most WebGPU objects have an mRawId member, which may be zero if the object is invalid. It would be nice to capture all this in the mozilla::webgpu::ObjectBase base class.

At the moment, m::w::ComputePassEncoder and m::w::RenderPassEncoder don't have an mRawId; instead they have an mfbt::Scoped pointer to a client-side structure representing the pass encoder. So they don't fit into the pattern. But perhaps there's a way to fit them in, too.

Blocks: webgpu-phase-2
No longer blocks: webgpu-v1
No longer blocks: webgpu-triage
Priority: P3 → P5
You need to log in before you can comment on or make changes to this bug.