WebGPU Headers: WGPUSurfaceConfiguration Struct Reference

Data Fields

WGPUChainedStructnextInChain
 
WGPUDevice device
 
WGPUTextureFormat format
 
WGPUTextureUsage usage
 
uint32_t width
 
uint32_t height
 
size_t viewFormatCount
 
WGPUTextureFormat const * viewFormats
 
WGPUCompositeAlphaMode alphaMode
 
WGPUPresentMode presentMode
 

Options to wgpuSurfaceConfigure for defining how a WGPUSurface will be rendered to and presented to the user. See Surface Configuration for more details.

Default values can be set using WGPU_SURFACE_CONFIGURATION_INIT as initializer.

Definition at line 3091 of file webgpu.h.

◆ nextInChain

◆ device

The WGPUDevice to use to render to surface's textures.

The INIT macro sets this to NULL.

Definition at line 3098 of file webgpu.h.

◆ format

◆ usage

◆ width

uint32_t WGPUSurfaceConfiguration::width

The width of the surface's textures.

The INIT macro sets this to 0.

Definition at line 3116 of file webgpu.h.

◆ height

uint32_t WGPUSurfaceConfiguration::height

The height of the surface's textures.

The INIT macro sets this to 0.

Definition at line 3122 of file webgpu.h.

◆ viewFormatCount

size_t WGPUSurfaceConfiguration::viewFormatCount

Array count for viewFormats. The INIT macro sets this to 0.

Definition at line 3126 of file webgpu.h.

◆ viewFormats

◆ alphaMode

◆ presentMode