Class StagedVertexBuffer.GpuBufferPool
java.lang.Object
net.minecraft.client.renderer.StagedVertexBuffer.GpuBufferPool
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
StagedVertexBuffer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final record -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final intprivate final List<StagedVertexBuffer.GpuBufferPool.PendingRecycle> private final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidtakeBestAvailable(int minSize, int maxSize) private void
-
Field Details
-
BUFFER_SIZE_INCREMENT
private static final int BUFFER_SIZE_INCREMENT- See Also:
-
MAX_REUSE_SIZE_FACTOR
private static final int MAX_REUSE_SIZE_FACTOR- See Also:
-
label
-
usage
private final int usage -
available
-
usedThisFrame
-
pendingRecycle
-
-
Constructor Details
-
GpuBufferPool
-
-
Method Details
-
tryRecycleBuffers
private void tryRecycleBuffers() -
acquire
-
takeBestAvailable
-
endFrame
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-