Show the frame drawn into the surface's current texture and wait until the next one is due. Natively that is wgpuSurfacePresent (a FIFO surface blocks for vsync). The browser presents on its own; there this suspends the program until the page's next animation frame (other Jai threads run meanwhile) and then runs the callbacks with mode .AllowSpontaneous that finished.
webgpu_present :: (surface: WGPUSurface)
Show the frame drawn into the surface's current texture and wait until the next one is due. Natively that is wgpuSurfacePresent (a FIFO surface blocks for vsync). The browser presents on its own; there this suspends the program until the page's next animation frame (other Jai threads run meanwhile) and then runs the callbacks with mode .AllowSpontaneous that finished.
Parameters
- surface: WGPUSurface