Closed Bug 1878804 Opened 2 years ago Closed 1 year ago

Implement Wasm-friendly overload of setBindGroup

Categories

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

enhancement

Tracking

()

RESOLVED FIXED
138 Branch
Tracking Status
firefox138 --- fixed

People

(Reporter: jimb, Assigned: aleiserson)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

As described in emscripten#21221, the spec gives setBindGen an overload that allows it to draw dynamic offset values from a subset of a UInt32Array. This is an appealing binding for WebAssembly programs to use, as they can simply pass their entire memory object as the UInt32Array, indicating the range of their address space that holds the dynamic offsets via the offset and length arguments.

Obviously, since it's in the spec, Firefox will implement this overload. I'm mostly filing this bug to record the connection with the emscripten issue.

Assignee: nobody → aleiserson

Our current behavior (without this overload implemented) is to interpret the dynamicOffsetsData argument in its entirety as an iterable of dynamic offsets, which besides being incorrect, is quite slow.

:aleiserson: I provided the patch I've already had for a few months here. Feel free to commandeer it!

Status: NEW → ASSIGNED
Attachment #9474165 - Attachment is obsolete: true
Pushed by aleiserson@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8f06eff19718 Implement the 5-argument overload of setBindGroup r=webgpu-reviewers,ErichDonGubler,webidl,smaug
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 138 Branch
Blocks: 1954080
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: