WebGPU Headers
The WebGPU C API
 
Loading...
Searching...
No Matches
WGPUSurfaceTexture Struct Reference

Data Fields

WGPUChainedStructOutnextInChain
 
WGPUTexture texture
 
WGPUSurfaceGetCurrentTextureStatus status
 

Detailed Description

Queried each frame from a WGPUSurface to get a WGPUTexture to render to along with some metadata. See Presenting to Surface for more details.

Default values can be set using WGPU_SURFACE_TEXTURE_INIT as initializer.

Definition at line 3176 of file webgpu.h.

Field Documentation

◆ nextInChain

WGPUChainedStructOut* WGPUSurfaceTexture::nextInChain

Definition at line 3177 of file webgpu.h.

◆ texture

WGPUTexture WGPUSurfaceTexture::texture

The WGPUTexture representing the frame that will be shown on the surface. It is Returned with Ownership from wgpuSurfaceGetCurrentTexture.

Defaults to NULL.

Definition at line 3184 of file webgpu.h.

◆ status

WGPUSurfaceGetCurrentTextureStatus WGPUSurfaceTexture::status

Whether the call to wgpuSurfaceGetCurrentTexture succeeded and a hint as to why it might not have.

Defaults to (WGPUSurfaceGetCurrentTextureStatus)0.

Definition at line 3190 of file webgpu.h.