BufferUsage


public final class BufferUsage


Defines the valid usages for a buffer.

Summary

Constants

static final int

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

static final int

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

static final int
Index = 16

Allows the buffer to be used as an index buffer.

static final int
Indirect = 256

Allows the buffer to be used for indirect draw or dispatch calls.

static final int

Allows the buffer to be mapped for reading.

static final int

Allows the buffer to be mapped for writing.

static final int
None = 0

No usage is specified.

static final int

Allows the buffer to be used as the destination for a query resolve operation.

static final int
Storage = 128

Allows the buffer to be used as a storage buffer.

static final int
Uniform = 64

Allows the buffer to be used as a uniform buffer.

static final int
Vertex = 32

Allows the buffer to be used as a vertex buffer.

Public methods

static final @NonNull String
toString(int value)

Constants

CopyDst

public static final int CopyDst = 8

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

CopySrc

public static final int CopySrc = 4

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

Index

public static final int Index = 16

Allows the buffer to be used as an index buffer.

Indirect

public static final int Indirect = 256

Allows the buffer to be used for indirect draw or dispatch calls.

MapRead

public static final int MapRead = 1

Allows the buffer to be mapped for reading.

MapWrite

public static final int MapWrite = 2

Allows the buffer to be mapped for writing.

None

public static final int None = 0

No usage is specified.

QueryResolve

public static final int QueryResolve = 512

Allows the buffer to be used as the destination for a query resolve operation.

Storage

public static final int Storage = 128

Allows the buffer to be used as a storage buffer.

Uniform

public static final int Uniform = 64

Allows the buffer to be used as a uniform buffer.

Vertex

public static final int Vertex = 32

Allows the buffer to be used as a vertex buffer.

Public methods

toString

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