GPUSurfaceConfiguration


class GPUSurfaceConfiguration


Describes the configuration for a surface.

Summary

Public constructors

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

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
)

Public properties

alphaMode

Added in 1.0.0-alpha05
var alphaMode: Int

device

Added in 1.0.0-alpha05
var device: GPUDevice

The device to use for rendering to the surface.

format

Added in 1.0.0-alpha05
var format: Int

The texture format for the surface.

height

Added in 1.0.0-alpha05
var height: Int

The height of the surface's textures.

presentMode

Added in 1.0.0-alpha05
var presentMode: Int

usage

Added in 1.0.0-alpha05
var usage: Int

The allowed usages for the surface's textures.

viewFormats

Added in 1.0.0-alpha05
var viewFormats: IntArray

width

Added in 1.0.0-alpha05
var width: Int

The width of the surface's textures.