TextureUsage


public final class TextureUsage


Defines the valid usages for a texture.

Summary

Constants

static final int

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

static final int

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

static final int
None = 0

No usage is specified.

static final int

Allows the texture to be used as a render attachment.

static final int

Allows the texture to be used as a storage texture.

static final int

Allows the texture to be sampled in a shader.

static final int

Public methods

static final @NonNull String
toString(int value)

Constants

CopyDst

public static final int CopyDst = 2

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

CopySrc

public static final int CopySrc = 1

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

None

public static final int None = 0

No usage is specified.

RenderAttachment

public static final int RenderAttachment = 16

Allows the texture to be used as a render attachment.

StorageBinding

public static final int StorageBinding = 8

Allows the texture to be used as a storage texture.

TextureBinding

public static final int TextureBinding = 4

Allows the texture to be sampled in a shader.

TransientAttachment

public static final int TransientAttachment = 32

Public methods

toString

Added in 1.0.0-alpha05
public static final @NonNull String toString(int value)