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

Data Fields

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

Field Documentation

◆ nextInChain

WGPUChainedStructOut* WGPUSurfaceCapabilities::nextInChain

Definition at line 2836 of file webgpu.h.

◆ usages

WGPUTextureUsage WGPUSurfaceCapabilities::usages

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

Defaults to WGPUTextureUsage_None.

Definition at line 2843 of file webgpu.h.

◆ formatCount

size_t WGPUSurfaceCapabilities::formatCount

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

Defaults to NULL.

Definition at line 2849 of file webgpu.h.

◆ formats

WGPUTextureFormat const* WGPUSurfaceCapabilities::formats

Definition at line 2850 of file webgpu.h.

◆ presentModeCount

size_t WGPUSurfaceCapabilities::presentModeCount

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

Defaults to NULL.

Definition at line 2857 of file webgpu.h.

◆ presentModes

WGPUPresentMode const* WGPUSurfaceCapabilities::presentModes

Definition at line 2858 of file webgpu.h.

◆ alphaModeCount

size_t WGPUSurfaceCapabilities::alphaModeCount

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

Defaults to NULL.

Definition at line 2865 of file webgpu.h.

◆ alphaModes

WGPUCompositeAlphaMode const* WGPUSurfaceCapabilities::alphaModes

Definition at line 2866 of file webgpu.h.