Implement Wasm-friendly overload of setBindGroup
Categories
(Core :: Graphics: WebGPU, enhancement, P3)
Tracking
()
| 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.
| Reporter | ||
Updated•2 years ago
|
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 1•1 year ago
|
||
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.
Comment 2•1 year ago
|
||
Comment 3•1 year ago
|
||
:aleiserson: I provided the patch I've already had for a few months here. Feel free to commandeer it!
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 4•1 year ago
|
||
Updated•1 year ago
|
Comment 6•1 year ago
|
||
| bugherder | ||
Description
•