TextureUsage


class TextureUsage


Defines the valid usages for a texture.

Summary

Constants

const Int

Allows the texture to be the destination of a copy operation.

const Int

Allows the texture to be the source of a copy operation.

const Int
None = 0

No usage is specified.

const Int

Allows the texture to be used as a render attachment.

const Int

Allows the texture to be used as a storage texture.

const Int

Allows the texture to be sampled in a shader.

const Int

Public companion functions

String
toString(value: Int)

Constants

CopyDst

const val CopyDst = 2: Int

Allows the texture to be the destination of a copy operation.

CopySrc

const val CopySrc = 1: Int

Allows the texture to be the source of a copy operation.

None

const val None = 0: Int

No usage is specified.

RenderAttachment

const val RenderAttachment = 16: Int

Allows the texture to be used as a render attachment.

StorageBinding

const val StorageBinding = 8: Int

Allows the texture to be used as a storage texture.

TextureBinding

const val TextureBinding = 4: Int

Allows the texture to be sampled in a shader.

TransientAttachment

const val TransientAttachment = 32: Int

Public companion functions

toString

Added in 1.0.0-alpha05
fun toString(value: Int): String