Stay organized with collections
Save and categorize content based on your preferences.
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 |
Allows the buffer to be used as an index buffer.
|
static final int |
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 |
No usage is specified.
|
static final int |
Allows the buffer to be used as the destination for a query resolve operation.
|
static final int |
Allows the buffer to be used as a storage buffer.
|
static final int |
Allows the buffer to be used as a uniform buffer.
|
static final int |
Allows the buffer to be used as a vertex buffer.
|
Constants
public static final int CopyDst = 8
Allows the buffer to be the destination of a copy operation.
public static final int CopySrc = 4
Allows the buffer to be the source of a copy operation.
public static final int Index = 16
Allows the buffer to be used as an index buffer.
public static final int Indirect = 256
Allows the buffer to be used for indirect draw or dispatch calls.
public static final int MapRead = 1
Allows the buffer to be mapped for reading.
public static final int MapWrite = 2
Allows the buffer to be mapped for writing.
public static final int None = 0
No usage is specified.
public static final int QueryResolve = 512
Allows the buffer to be used as the destination for a query resolve operation.
public static final int Storage = 128
Allows the buffer to be used as a storage buffer.
public static final int Uniform = 64
Allows the buffer to be used as a uniform buffer.
public static final int Vertex = 32
Allows the buffer to be used as a vertex buffer.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2026-06-24 UTC.
[null,null,["Last updated 2026-06-24 UTC."],[],[]]