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.
WGPUChainedStruct* WGPUSurfaceConfiguration::nextInChain |
WGPUDevice WGPUSurfaceConfiguration::device |
The WGPUDevice to use to render to surface's textures.
The INIT
macro sets this to NULL
.
WGPUTextureFormat WGPUSurfaceConfiguration::format |
The WGPUTextureFormat of the surface's textures.
The INIT
macro sets this to WGPUTextureFormat_Undefined.
WGPUTextureUsage WGPUSurfaceConfiguration::usage |
The WGPUTextureUsage of the surface's textures.
The INIT
macro sets this to WGPUTextureUsage_RenderAttachment.
uint32_t WGPUSurfaceConfiguration::width |
uint32_t WGPUSurfaceConfiguration::height |
size_t WGPUSurfaceConfiguration::viewFormatCount |
WGPUTextureFormat const* WGPUSurfaceConfiguration::viewFormats |
The additional WGPUTextureFormat for WGPUTextureView format reinterpretation of the surface's textures.
The INIT
macro sets this to NULL
.
WGPUCompositeAlphaMode WGPUSurfaceConfiguration::alphaMode |
How the surface's frames will be composited on the screen.
If set to WGPUCompositeAlphaMode_Auto, [defaults] to WGPUCompositeAlphaMode_Inherit in native (allowing the mode to be configured externally), and to WGPUCompositeAlphaMode_Opaque in Wasm.
The INIT
macro sets this to WGPUCompositeAlphaMode_Auto.
WGPUPresentMode WGPUSurfaceConfiguration::presentMode |
When and in which order the surface's frames will be shown on the screen.
If set to WGPUPresentMode_Undefined, defaults to WGPUPresentMode_Fifo.
The INIT
macro sets this to WGPUPresentMode_Undefined.