GPUSurfaceConfiguration


class GPUSurfaceConfiguration


A descriptor for configuring 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 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

GPUSurfaceConfiguration

Added in 1.0.0-alpha02
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-alpha02
var alphaModeInt

device

Added in 1.0.0-alpha02
var deviceGPUDevice

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

format

Added in 1.0.0-alpha02
var formatInt

The preferred texture format for the surface's textures.

height

Added in 1.0.0-alpha02
var heightInt

The height of the surface's textures.

presentMode

Added in 1.0.0-alpha02
var presentModeInt

usage

Added in 1.0.0-alpha02
var usageInt

The texture usage flags for textures created by the surface.

viewFormats

Added in 1.0.0-alpha02
var viewFormatsIntArray

width

Added in 1.0.0-alpha02
var widthInt

The width of the surface's textures.