WebGPU Headers: WGPUSurfaceConfiguration Struct Reference
Data Fields | |
| WGPUChainedStruct * | 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.
◆ nextInChain
◆ device
The WGPUDevice to use to render to surface's textures.
The INIT macro sets this to NULL.
◆ format
◆ usage
◆ width
uint32_t WGPUSurfaceConfiguration::width
◆ height
uint32_t WGPUSurfaceConfiguration::height
◆ viewFormatCount
size_t WGPUSurfaceConfiguration::viewFormatCount