WebGPU Headers: WGPUSurfaceCapabilities Struct Reference
Data Fields | |
| WGPUChainedStruct * | nextInChain |
| 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.
◆ nextInChain
◆ usages
◆ formatCount
size_t WGPUSurfaceCapabilities::formatCount
◆ formats
A list of supported WGPUTextureFormat values, in order of preference.
The INIT macro sets this to NULL.
◆ presentModeCount
size_t WGPUSurfaceCapabilities::presentModeCount
◆ presentModes
◆ alphaModeCount
size_t WGPUSurfaceCapabilities::alphaModeCount