You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
wgpu's compute example uses wgpuDevicePoll to block until the memory is mapped. This works, but wgpuDevicePoll is wgpu-specific. The JS API returns a promise that can be used for blocking here, but I cannot see how something similar can be done using just webgpu.h. Some mechanism for blocking until asynchronous operations are done should probably be added.