GPUTextureComponentSwizzle


public final class GPUTextureComponentSwizzle


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

Summary

Nested types

Builder for GPUTextureComponentSwizzle.

Public constructors

GPUTextureComponentSwizzle(int r, int g, int b, int a)

Public methods

final int

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

final int

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

final int

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

final int

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

final void
setA(int a)

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

final void
setB(int b)

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

final void
setG(int g)

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

final void
setR(int r)

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

Public constructors

GPUTextureComponentSwizzle

Added in 1.0.0-alpha04
public GPUTextureComponentSwizzle(int r, int g, int b, int a)

Public methods

getA

Added in 1.0.0-alpha04
public final int getA()

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

getB

Added in 1.0.0-alpha04
public final int getB()

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

getG

Added in 1.0.0-alpha04
public final int getG()

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

getR

Added in 1.0.0-alpha04
public final int getR()

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

setA

Added in 1.0.0-alpha04
public final void setA(int a)

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

setB

Added in 1.0.0-alpha04
public final void setB(int b)

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

setG

Added in 1.0.0-alpha04
public final void setG(int g)

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

setR

Added in 1.0.0-alpha04
public final void setR(int r)

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