Class GlBuffer
java.lang.Object
com.mojang.blaze3d.buffers.GpuBuffer
com.mojang.blaze3d.opengl.GlBuffer
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
GlBuffer.Direct, GlTransientMemory.TransientGpuBuffer
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class GpuBuffer
GpuBuffer.Usage -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final booleanprivate final intprotected intprotected static final com.mojang.jtracy.MemoryPoolFields inherited from class GpuBuffer
USAGE_COPY_DST, USAGE_COPY_SRC, USAGE_HINT_CLIENT_STORAGE, USAGE_INDEX, USAGE_INDIRECT_PARAMETERS, USAGE_MAP_READ, USAGE_MAP_WRITE, USAGE_UNIFORM, USAGE_UNIFORM_TEXEL_BUFFER, USAGE_VERTEX -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGlBuffer(int usage, long size, int handle, boolean canPersistentMap) -
Method Summary
-
Field Details
-
MEMORY_POOL
protected static final com.mojang.jtracy.MemoryPool MEMORY_POOL -
handle
private final int handle -
canPersistentMap
protected final boolean canPersistentMap -
mappingRefCount
protected int mappingRefCount
-
-
Constructor Details
-
GlBuffer
protected GlBuffer(int usage, long size, int handle, boolean canPersistentMap)
-
-
Method Details
-
handle
public int handle() -
checkCanBeUsed
protected void checkCanBeUsed()
-