ComponentSwizzle


class ComponentSwizzle


Defines how component values are remapped when sampling a texture.

Summary

Constants

const Int
A = 6

Take its value from the alpha channel of the texture.

const Int
B = 5

Take its value from the blue channel of the texture.

const Int
G = 4

Take its value from the green channel of the texture.

const Int
One = 2

Force its value to 1.

const Int
R = 3

Take its value from the red channel of the texture.

const Int

Indicates no value is passed for this argument.

const Int
Zero = 1

Force its value to 0.

Public companion functions

String
toString(value: Int)

Constants

A

const val A = 6: Int

Take its value from the alpha channel of the texture.

B

const val B = 5: Int

Take its value from the blue channel of the texture.

G

const val G = 4: Int

Take its value from the green channel of the texture.

One

const val One = 2: Int

Force its value to 1.

R

const val R = 3: Int

Take its value from the red channel of the texture.

Undefined

const val Undefined = 0: Int

Indicates no value is passed for this argument.

Zero

const val Zero = 1: Int

Force its value to 0.

Public companion functions

toString

Added in 1.0.0-alpha05
fun toString(value: Int): String