wgpu icon indicating copy to clipboard operation
wgpu copied to clipboard

on_submitted_work_done / onSubmittedWorkDone is unimplemented on WebGPU

Open ArthurBrussee opened this issue 1 year ago • 1 comments

on_submitted_work_done works for native platforms but is unimplemented!() for WebGPU.

See also https://github.com/gfx-rs/wgpu/discussions/5122, https://github.com/gfx-rs/wgpu/pull/5012

ArthurBrussee avatar Oct 11 '24 14:10 ArthurBrussee

The Web platform has GPUQueue.onSubmittedWorkDone, but our callback-based approach in WGPU either needs to be adapted to the web, or we need to rethink the API for WGPU to be resolve-able a la Promises (maybe via await?).

ErichDonGubler avatar Oct 16 '24 14:10 ErichDonGubler

We already have adapters for mapAsync, so this should be fine to implement

cwfitzgerald avatar Apr 29 '25 23:04 cwfitzgerald

Seems this was merged! Thanks all, looking forward to wgpu 26.

ArthurBrussee avatar Jul 02 '25 13:07 ArthurBrussee