Package com.google.android.filament
Class Texture.Usage
- java.lang.Object
-
- com.google.android.filament.Texture.Usage
-
- Enclosing class:
- Texture
public static class Texture.Usage extends java.lang.ObjectA bitmask to specify how the texture will be used.
-
-
Field Summary
Fields Modifier and Type Field Description static intCOLOR_ATTACHMENTThe texture will be used as a color attachmentstatic intDEFAULTby default textures areUPLOADABLEandSAMPLEABLEstatic intDEPTH_ATTACHMENTThe texture will be used as a depth attachmentstatic intSAMPLEABLEThe texture can be read from a shader or blitted fromstatic intSTENCIL_ATTACHMENTThe texture will be used as a stencil attachmentstatic intSUBPASS_INPUTTexture can be used as a subpass inputstatic intUPLOADABLEThe texture content can be set withTexture.setImage(com.google.android.filament.Engine, int, com.google.android.filament.Texture.PixelBufferDescriptor)
-
Constructor Summary
Constructors Constructor Description Usage()
-
-
-
Field Detail
-
COLOR_ATTACHMENT
public static final int COLOR_ATTACHMENT
The texture will be used as a color attachment- See Also:
- Constant Field Values
-
DEPTH_ATTACHMENT
public static final int DEPTH_ATTACHMENT
The texture will be used as a depth attachment- See Also:
- Constant Field Values
-
STENCIL_ATTACHMENT
public static final int STENCIL_ATTACHMENT
The texture will be used as a stencil attachment- See Also:
- Constant Field Values
-
UPLOADABLE
public static final int UPLOADABLE
The texture content can be set withTexture.setImage(com.google.android.filament.Engine, int, com.google.android.filament.Texture.PixelBufferDescriptor)- See Also:
- Constant Field Values
-
SAMPLEABLE
public static final int SAMPLEABLE
The texture can be read from a shader or blitted from- See Also:
- Constant Field Values
-
SUBPASS_INPUT
public static final int SUBPASS_INPUT
Texture can be used as a subpass input- See Also:
- Constant Field Values
-
DEFAULT
public static final int DEFAULT
by default textures areUPLOADABLEandSAMPLEABLE- See Also:
- Constant Field Values
-
-