SurfaceConfiguration
data class SurfaceConfiguration(
val device: GPUDevice,
val format: GPUTextureFormat,
val usage: GPUTextureUsage = GPUTextureUsage.RenderAttachment,
val viewFormats: Set<GPUTextureFormat> = emptySet(),
val colorSpace: PredefinedColorSpace = PredefinedColorSpace.srgb,
val alphaMode: GPUCanvasAlphaMode = GPUCanvasAlphaMode.Opaque
)
Parameters used to configure a canvas surface for a device.
Constructors
SurfaceConfiguration
constructor(
device: GPUDevice,
format: GPUTextureFormat,
usage: GPUTextureUsage = GPUTextureUsage.RenderAttachment,
viewFormats: Set<GPUTextureFormat> = emptySet(),
colorSpace: PredefinedColorSpace = PredefinedColorSpace.srgb,
alphaMode: GPUCanvasAlphaMode = GPUCanvasAlphaMode.Opaque
)
Properties
alphaMode
colorSpace
device
usage
val usage: GPUTextureUsage