GPUSurfaceConfiguration
class GPUSurfaceConfiguration
Describes the configuration for a surface.
Summary
Nested types |
|---|
|
Builder for |
Public constructors |
|---|
Public properties |
|
|---|---|
Int |
|
GPUDevice |
The device to use for rendering to the surface. |
Int |
The texture format for the surface. |
Int |
The height of the surface's textures. |
Int |
|
Int |
The allowed usages for the surface's textures. |
IntArray |
|
Int |
The width of the surface's textures. |
Public constructors
GPUSurfaceConfiguration
Added in 1.0.0-alpha05
GPUSurfaceConfiguration(
device: GPUDevice,
width: Int,
height: Int,
format: Int = TextureFormat.Undefined,
usage: Int = TextureUsage.RenderAttachment,
viewFormats: IntArray = intArrayOf(),
alphaMode: Int = CompositeAlphaMode.Auto,
presentMode: Int = PresentMode.Fifo
)