WebGPU Headers
The WebGPU C API
 
Loading...
Searching...
No Matches
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
 

Detailed Description

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 3068 of file webgpu.h.

Field Documentation

◆ nextInChain

WGPUChainedStruct* WGPUSurfaceCapabilities::nextInChain

Definition at line 3069 of file webgpu.h.

◆ usages

WGPUTextureUsage WGPUSurfaceCapabilities::usages

The bit set of supported WGPUTextureUsage bits. Guaranteed to contain WGPUTextureUsage_RenderAttachment.

The INIT macro sets this to WGPUTextureUsage_None.

Definition at line 3076 of file webgpu.h.

◆ formatCount

size_t WGPUSurfaceCapabilities::formatCount

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

Definition at line 3080 of file webgpu.h.

◆ formats

WGPUTextureFormat const* WGPUSurfaceCapabilities::formats

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

The INIT macro sets this to NULL.

Definition at line 3086 of file webgpu.h.

◆ presentModeCount

size_t WGPUSurfaceCapabilities::presentModeCount

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

Definition at line 3090 of file webgpu.h.

◆ presentModes

WGPUPresentMode const* WGPUSurfaceCapabilities::presentModes

A list of supported WGPUPresentMode values. Guaranteed to contain WGPUPresentMode_Fifo.

The INIT macro sets this to NULL.

Definition at line 3097 of file webgpu.h.

◆ alphaModeCount

size_t WGPUSurfaceCapabilities::alphaModeCount

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

Definition at line 3101 of file webgpu.h.

◆ alphaModes

WGPUCompositeAlphaMode const* WGPUSurfaceCapabilities::alphaModes

A list of supported WGPUCompositeAlphaMode values. WGPUCompositeAlphaMode_Auto will be an alias for the first element and will never be present in this array.

The INIT macro sets this to NULL.

Definition at line 3108 of file webgpu.h.