WebGPU module

WEBGPU_SURFACE_OCCLUDED

constantSource

wgpu-native's own wgpuSurfaceGetCurrentTexture status (wgpu.h, not webgpu.h): the window is not visible, so there is no texture this frame. Only its Metal backend reports it, instead of blocking for up to a second; skip the frame (handle events, wait a little) and try again.

WEBGPU_SURFACE_OCCLUDED :: cast(WGPUSurfaceGetCurrentTextureStatus) 0x0003_0001

See also