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 |
|---|
public final class GPUTextureComponentSwizzle.BuilderBuilder for |
Public constructors |
|---|
GPUTextureComponentSwizzle(int r, int g, int b, int a) |
Public methods |
|
|---|---|
final int |
getA()Specifies the source component or constant value to use for the alpha channel of the view. |
final int |
getB()Specifies the source component or constant value to use for the blue channel of the view. |
final int |
getG()Specifies the source component or constant value to use for the green channel of the view. |
final int |
getR()Specifies the source component or constant value to use for the red channel of the view. |
final void |
setA(int value)Specifies the source component or constant value to use for the alpha channel of the view. |
final void |
setB(int value)Specifies the source component or constant value to use for the blue channel of the view. |
final void |
setG(int value)Specifies the source component or constant value to use for the green channel of the view. |
final void |
setR(int value)Specifies the source component or constant value to use for the red channel of the view. |
Public constructors
GPUTextureComponentSwizzle
public GPUTextureComponentSwizzle(int r, int g, int b, int a)
Public methods
getA
public final int getA()
Specifies the source component or constant value to use for the alpha channel of the view.
getB
public final int getB()
Specifies the source component or constant value to use for the blue channel of the view.
getG
public final int getG()
Specifies the source component or constant value to use for the green channel of the view.
getR
public final int getR()
Specifies the source component or constant value to use for the red channel of the view.
setA
public final void setA(int value)
Specifies the source component or constant value to use for the alpha channel of the view.
setB
public final void setB(int value)
Specifies the source component or constant value to use for the blue channel of the view.
setG
public final void setG(int value)
Specifies the source component or constant value to use for the green channel of the view.
setR
public final void setR(int value)
Specifies the source component or constant value to use for the red channel of the view.