GPUTextureComponentSwizzle


class GPUTextureComponentSwizzle


Defines how the color components of a texture are remapped for a texture view.

Summary

Public constructors

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

Public properties

Int

The source component for the view's alpha channel.

Int

The source component for the view's blue channel.

Int

The source component for the view's green channel.

Int

The source component for the view's red channel.

Public constructors

GPUTextureComponentSwizzle

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

The source component for the view's alpha channel.

b

Added in 1.0.0-alpha02
var bInt

The source component for the view's blue channel.

g

Added in 1.0.0-alpha02
var gInt

The source component for the view's green channel.

r

Added in 1.0.0-alpha02
var rInt

The source component for the view's red channel.