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-alpha04
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-alpha04
var alphaModeInt

device

Added in 1.0.0-alpha04
var deviceGPUDevice

The device to use for rendering to the surface.

format

Added in 1.0.0-alpha04
var formatInt

The texture format for the surface.

height

Added in 1.0.0-alpha04
var heightInt

The height of the surface's textures.

presentMode

Added in 1.0.0-alpha04
var presentModeInt

usage

Added in 1.0.0-alpha04
var usageInt

The allowed usages for the surface's textures.

viewFormats

Added in 1.0.0-alpha04
var viewFormatsIntArray

width

Added in 1.0.0-alpha04
var widthInt

The width of the surface's textures.