The shared header has a function, wgpuInstanceProcessEvents(), which is supposed to synchronously call all outstanding callbacks. A natural way to do this is to hook this up to [NSRunLoop runMode:beforeDate:].
Created attachment 452663 [details] Patch
Comment on attachment 452663 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=452663&action=review > Source/WebGPU/ChangeLog:10 > + The shared header has a function, wgpuInstanceProcessEvents(), which is supposed > + to synchronously call all outstanding callbacks. A natural way to do this is to > + hook this up to [NSRunLoop runMode:beforeDate:]. What's the layering between WebGPU and Foundation? How would a non-Apple port do this?
Comment on attachment 452663 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=452663&action=review >> Source/WebGPU/ChangeLog:10 >> + hook this up to [NSRunLoop runMode:beforeDate:]. > > What's the layering between WebGPU and Foundation? How would a non-Apple port do this? Non-Apple ports wouldn't use WebGPU.framework at all. They would use Dawn or wgpu. So the layering is just "Foundation is below WebGPU.framework."
Committed r290258 (?): <https://commits.webkit.org/r290258>
<rdar://problem/89249380>