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.
WGPUChainedStruct* WGPUSurfaceCapabilities::nextInChain |
WGPUTextureUsage WGPUSurfaceCapabilities::usages |
The bit set of supported WGPUTextureUsage bits. Guaranteed to contain WGPUTextureUsage_RenderAttachment.
The INIT
macro sets this to WGPUTextureUsage_None.
size_t WGPUSurfaceCapabilities::formatCount |
WGPUTextureFormat const* WGPUSurfaceCapabilities::formats |
A list of supported WGPUTextureFormat values, in order of preference.
The INIT
macro sets this to NULL
.
size_t WGPUSurfaceCapabilities::presentModeCount |
WGPUPresentMode const* WGPUSurfaceCapabilities::presentModes |
A list of supported WGPUPresentMode values. Guaranteed to contain WGPUPresentMode_Fifo.
The INIT
macro sets this to NULL
.
size_t WGPUSurfaceCapabilities::alphaModeCount |
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
.