Class GlBuffer
java.lang.Object
com.mojang.blaze3d.buffers.GpuBuffer
com.mojang.blaze3d.opengl.GlBuffer
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class GpuBuffer
GpuBuffer.MappedView, GpuBuffer.Usage -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprivate final DirectStateAccessprotected final intprotected static final com.mojang.jtracy.MemoryPoolprotected @Nullable ByteBufferFields inherited from class GpuBuffer
USAGE_COPY_DST, USAGE_COPY_SRC, USAGE_HINT_CLIENT_STORAGE, USAGE_INDEX, USAGE_MAP_READ, USAGE_MAP_WRITE, USAGE_UNIFORM, USAGE_UNIFORM_TEXEL_BUFFER, USAGE_VERTEX -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGlBuffer(@Nullable Supplier<String> label, DirectStateAccess dsa, int usage, long size, int handle, @Nullable ByteBuffer persistentBuffer) -
Method Summary
-
Field Details
-
MEMORY_POOl
protected static final com.mojang.jtracy.MemoryPool MEMORY_POOl -
closed
protected boolean closed -
label
-
dsa
-
handle
protected final int handle -
persistentBuffer
-
-
Constructor Details
-
GlBuffer
protected GlBuffer(@Nullable Supplier<String> label, DirectStateAccess dsa, int usage, long size, int handle, @Nullable ByteBuffer persistentBuffer)
-
-
Method Details
-
isClosed
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classGpuBuffer
-