BufferUsage


class BufferUsage


Defines the valid usages for a buffer.

Summary

Constants

const Int

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

const Int

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

const Int
Index = 16

Allows the buffer to be used as an index buffer.

const Int
Indirect = 256

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

const Int

Allows the buffer to be mapped for reading.

const Int

Allows the buffer to be mapped for writing.

const Int
None = 0

No usage is specified.

const Int

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

const Int
Storage = 128

Allows the buffer to be used as a storage buffer.

const Int
Uniform = 64

Allows the buffer to be used as a uniform buffer.

const Int
Vertex = 32

Allows the buffer to be used as a vertex buffer.

Public companion functions

String
toString(value: Int)

Constants

CopyDst

const val CopyDst = 8: Int

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

CopySrc

const val CopySrc = 4: Int

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

Index

const val Index = 16: Int

Allows the buffer to be used as an index buffer.

Indirect

const val Indirect = 256: Int

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

MapRead

const val MapRead = 1: Int

Allows the buffer to be mapped for reading.

MapWrite

const val MapWrite = 2: Int

Allows the buffer to be mapped for writing.

None

const val None = 0: Int

No usage is specified.

QueryResolve

const val QueryResolve = 512: Int

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

Storage

const val Storage = 128: Int

Allows the buffer to be used as a storage buffer.

Uniform

const val Uniform = 64: Int

Allows the buffer to be used as a uniform buffer.

Vertex

const val Vertex = 32: Int

Allows the buffer to be used as a vertex buffer.

Public companion functions

toString

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