Back to Filament

Usage

docs/android/dokka/filament-android/com.google.android.filament/-texture/-usage/index.md

1.75.03.0 KB
Original Source

//filament-android/com.google.android.filament/Texture/Usage

Usage

[main]
open class Usage

A bitmask to specify how the texture will be used.

Constructors

Usage[main]
constructor()

Properties

NameSummary
BLIT_DST[main]
val BLIT_DST: Int = 128
Texture can be used the destination of a blit()
BLIT_SRC[main]
val BLIT_SRC: Int = 64
Texture can be used the source of a blit()
COLOR_ATTACHMENT[main]
val COLOR_ATTACHMENT: Int = 1
The texture will be used as a color attachment
DEFAULT[main]
val DEFAULT: Int = 24
by default textures are UPLOADABLE and SAMPLEABLE
DEPTH_ATTACHMENT[main]
val DEPTH_ATTACHMENT: Int = 2
The texture will be used as a depth attachment
GEN_MIPMAPPABLE[main]
val GEN_MIPMAPPABLE: Int = 512
Texture can be used with generateMipmaps()
PROTECTED[main]
val PROTECTED: Int = 256
Texture can be used for protected content
SAMPLEABLE[main]
val SAMPLEABLE: Int = 16
The texture can be read from a shader or blitted from
STENCIL_ATTACHMENT[main]
val STENCIL_ATTACHMENT: Int = 4
The texture will be used as a stencil attachment
SUBPASS_INPUT[main]
val SUBPASS_INPUT: Int = 32
Texture can be used as a subpass input
UPLOADABLE[main]
val UPLOADABLE: Int = 8
The texture content can be set with setImage