Data Fields | |
WGPUChainedStruct const * | nextInChain |
WGPUDevice | device |
WGPUTextureFormat | format |
WGPUTextureUsage | usage |
uint32_t | width |
uint32_t | height |
size_t | viewFormatCount |
WGPUTextureFormat const * | viewFormats |
WGPUCompositeAlphaMode | alphaMode |
WGPUPresentMode | presentMode |
Options to wgpuSurfaceConfigure
for defining how a WGPUSurface will be rendered to and presented to the user. See Surface Configuration for more details.
Default values can be set using WGPU_SURFACE_CONFIGURATION_INIT as initializer.
WGPUChainedStruct const* WGPUSurfaceConfiguration::nextInChain |
WGPUDevice WGPUSurfaceConfiguration::device |
WGPUTextureFormat WGPUSurfaceConfiguration::format |
The WGPUTextureFormat of the surface's textures.
Defaults to WGPUTextureFormat_Undefined.
WGPUTextureUsage WGPUSurfaceConfiguration::usage |
uint32_t WGPUSurfaceConfiguration::width |
uint32_t WGPUSurfaceConfiguration::height |
size_t WGPUSurfaceConfiguration::viewFormatCount |
The additional WGPUTextureFormat for WGPUTextureView format reinterpretation of the surface's textures.
Defaults to NULL
.
WGPUTextureFormat const* WGPUSurfaceConfiguration::viewFormats |
WGPUCompositeAlphaMode WGPUSurfaceConfiguration::alphaMode |
How the surface's frames will be composited on the screen.
Defaults to WGPUCompositeAlphaMode_Auto.
WGPUPresentMode WGPUSurfaceConfiguration::presentMode |
When and in which order the surface's frames will be shown on the screen. Defaults to WGPUPresentMode_Fifo.
Defaults to WGPUPresentMode_Fifo.