wgpuSurfaceGetCurrentTexture

Returns the WGPUTexture to render to surface this frame along with metadata on the frame. Returns NULL and WGPUSurfaceGetCurrentTextureStatus.Error if the surface is not configured.

See Surface-Presenting for more details.

Parameters

surfaceTexture

The structure to fill the WGPUTexture and metadata in.