WebGPU Headers: WGPUSurfaceCapabilities Struct Reference

Data Fields

WGPUChainedStructnextInChain
 
WGPUTextureUsage usages
 
size_t formatCount
 
WGPUTextureFormat const * formats
 
size_t presentModeCount
 
WGPUPresentMode const * presentModes
 
size_t alphaModeCount
 
WGPUCompositeAlphaMode const * alphaModes
 

Filled by wgpuSurfaceGetCapabilities with what's supported for wgpuSurfaceConfigure for a pair of WGPUSurface and WGPUAdapter.

Default values can be set using WGPU_SURFACE_CAPABILITIES_INIT as initializer.

Definition at line 2999 of file webgpu.h.

◆ nextInChain

◆ usages

◆ formatCount

size_t WGPUSurfaceCapabilities::formatCount

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

Definition at line 3011 of file webgpu.h.

◆ formats

A list of supported WGPUTextureFormat values, in order of preference.

The INIT macro sets this to NULL.

Definition at line 3017 of file webgpu.h.

◆ presentModeCount

size_t WGPUSurfaceCapabilities::presentModeCount

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

Definition at line 3021 of file webgpu.h.

◆ presentModes

◆ alphaModeCount

size_t WGPUSurfaceCapabilities::alphaModeCount

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

Definition at line 3032 of file webgpu.h.

◆ alphaModes