Shows the frame drawn into the surface's current texture and waits until the next one is due. Natively
that is wgpuSurfacePresent, which blocks for vsync on a FIFO surface. In the browser it waits for the
page's next animation frame.
surface: WGPUSurface;
while true {
// ... draw into the surface's current texture ...
webgpu_present(surface);
}This one is only checked to compile, not run.
webgpu_present :: (surface: WGPUSurface)
Parameters
- surface: WGPUSurface