Class GlBuffer
java.lang.Object
com.mojang.renderpearl.backend.common.BaseGpuBuffer
com.mojang.renderpearl.backend.opengl.GlBuffer
- All Implemented Interfaces:
GpuBuffer, UncheckedAutoCloseable, AutoCloseable
- Direct Known Subclasses:
GlBuffer.Direct, GlTransientMemory.TransientGpuBuffer
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface GpuBuffer
GpuBuffer.Usage -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final booleanprivate final intprotected intprotected static final com.mojang.jtracy.MemoryPoolFields inherited from interface 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
Methods inherited from class BaseGpuBuffer
size, usageMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface UncheckedAutoCloseable
close
-
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
public void checkCanBeUsed()- Overrides:
checkCanBeUsedin classBaseGpuBuffer
-