WebGPU module

webgpu_wait

procedure · 1 overloadSource

Process events until done is set (by a callback with mode .AllowProcessEvents or .AllowSpontaneous). Natively this polls wgpu-native and sleeps a little between polls once the wait gets long; in the browser each poll gives the page a turn (and other Jai threads run meanwhile, see docs/extensions/webgpu.md).

webgpu_wait :: (instance: WGPUInstance, done: *bool)

Process events until done is set (by a callback with mode .AllowProcessEvents or .AllowSpontaneous). Natively this polls wgpu-native and sleeps a little between polls once the wait gets long; in the browser each poll gives the page a turn (and other Jai threads run meanwhile, see docs/extensions/webgpu.md).

Parameters

instance: WGPUInstance
done: *bool

See also