SurfaceConfiguration


class SurfaceConfiguration


A descriptor for configuring a surface.

Summary

Public constructors

SurfaceConfiguration(
    device: GPUDevice,
    width: Int,
    height: Int,
    format: Int,
    usage: Int,
    viewFormats: IntArray,
    alphaMode: Int,
    presentMode: Int
)

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

alphaMode

Added in 1.0.0-alpha01
var alphaModeInt

device

Added in 1.0.0-alpha01
var deviceGPUDevice

The device that will be used to render to the surface.

format

Added in 1.0.0-alpha01
var formatInt

The preferred texture format for the surface's textures.

height

Added in 1.0.0-alpha01
var heightInt

The height of the surface's textures.

presentMode

Added in 1.0.0-alpha01
var presentModeInt

usage

Added in 1.0.0-alpha01
var usageInt

The texture usage flags for textures created by the surface.

viewFormats

Added in 1.0.0-alpha01
var viewFormatsIntArray

width

Added in 1.0.0-alpha01
var widthInt

The width of the surface's textures.