Usage

object Usage

Texture usage flags affecting memory layout and capabilities.

Properties

Link copied to clipboard
const val ALL_ATTACHMENTS: Int

Usable as any attachment and a subpass input.

Link copied to clipboard
const val BLIT_DST: Int = 128

Texture is usable as a blit destination.

Link copied to clipboard
const val BLIT_SRC: Int = 64

Texture is usable as a blit source.

Link copied to clipboard
const val COLOR_ATTACHMENT: Int = 1

Texture is usable as a color attachment.

Link copied to clipboard
const val DEFAULT: Int

Default usage.

Link copied to clipboard
const val DEPTH_ATTACHMENT: Int = 2

Texture is usable as a depth attachment.

Link copied to clipboard
const val GEN_MIPMAPPABLE: Int = 512

Texture can have mipmaps generated via generateMipmaps().

Link copied to clipboard
const val NONE: Int = 0

No usage.

Link copied to clipboard
const val PROTECTED: Int = 256

Texture is protected (secure content).

Link copied to clipboard
const val SAMPLEABLE: Int = 16

Texture can be sampled in shaders.

Link copied to clipboard
const val STENCIL_ATTACHMENT: Int = 4

Texture is usable as a stencil attachment.

Link copied to clipboard
const val SUBPASS_INPUT: Int = 32

Texture is usable as a subpass input.

Link copied to clipboard
const val UPLOADABLE: Int = 8

Texture can have data uploaded via setImage().