SurfaceConfiguration
class SurfaceConfiguration
A descriptor for configuring a surface.
Summary
Public constructors |
|---|
Public properties |
|
|---|---|
Int |
|
GPUDevice |
The device that will be used to render to the surface. |
Int |
The preferred texture format for the surface's textures. |
Int |
The height of the surface's textures. |
Int |
|
Int |
The texture usage flags for textures created by the surface. |
IntArray |
|
Int |
The width of the surface's textures. |
Public constructors
SurfaceConfiguration
Added in 1.0.0-alpha01
SurfaceConfiguration(
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
)
Public properties
device
Added in 1.0.0-alpha01
var device: GPUDevice
The device that will be used to render to the surface.
format
Added in 1.0.0-alpha01
var format: Int
The preferred texture format for the surface's textures.
usage
Added in 1.0.0-alpha01
var usage: Int
The texture usage flags for textures created by the surface.