GPUTextureComponentSwizzle


class GPUTextureComponentSwizzle


Defines the mapping of source texture components to the color channels of a texture view, allowing for reordering or forcing values.

Summary

Public constructors

GPUTextureComponentSwizzle(r: Int, g: Int, b: Int, a: Int)

Public properties

Int

Specifies the source component or constant value to use for the alpha channel of the view.

Int

Specifies the source component or constant value to use for the blue channel of the view.

Int

Specifies the source component or constant value to use for the green channel of the view.

Int

Specifies the source component or constant value to use for the red channel of the view.

Public constructors

GPUTextureComponentSwizzle

Added in 1.0.0-alpha05
GPUTextureComponentSwizzle(
    r: Int = ComponentSwizzle.R,
    g: Int = ComponentSwizzle.G,
    b: Int = ComponentSwizzle.B,
    a: Int = ComponentSwizzle.A
)

Public properties

a

Added in 1.0.0-alpha05
var aInt

Specifies the source component or constant value to use for the alpha channel of the view.

b

Added in 1.0.0-alpha05
var bInt

Specifies the source component or constant value to use for the blue channel of the view.

g

Added in 1.0.0-alpha05
var gInt

Specifies the source component or constant value to use for the green channel of the view.

r

Added in 1.0.0-alpha05
var rInt

Specifies the source component or constant value to use for the red channel of the view.