net.minecraft.client.render

public class UberBuffer<T>

implements AutoCloseable

com.mojang.blaze3d.vertex.UberGpuBuffer
net.minecraft.class_1_296
net.minecraft.client.render.UberBuffer

Field summary

Modifier and TypeField
private final int
bufferUsage
field_1_3530
usage
private final int
heapSize
field_1_3531
heapSize
private final int
alignSize
field_1_1763
vertexSize
private final String
name
field_1_1765
label
private final List<com.mojang.datafixers.util.Pair<AllocationManager, UberBuffer$Heap>>
nodes
field_1_1766
buffers
private final StagingBuffer
stagingBuffer
field_1_1769
staging
private final it.unimi.dsi.fastutil.objects.Object2ObjectOpenHashMap<T, UberBuffer$StagedAllocation<? extends T>>
stagedAllocations
field_1_1768
stagedAllocations
private final it.unimi.dsi.fastutil.objects.ObjectOpenHashSet<T>
skippedStagedAllocations
field_1_1767
closedData
private final Map<T, AllocationManager$Allocation>
allocationMap
field_1_1764
allocationsByData
static final boolean
$assertionsDisabled
field_1_1762
field_1_1762

Constructor summary

ModifierConstructor
public (String name, int usage, int heapSize, int vertexSize, StagingBuffer staging)

Method summary

Modifier and TypeMethod
public <U extends T> boolean
addAllocation(U allocationKey, UberGpuBuffer$UploadCallback<U> callback, ByteBuffer buffer)
method_1_4152(U arg0, class_1_296$class_1_302<U> arg1, ByteBuffer arg2)
stageRemainder(U data, UberBuffer$DataConsumer<U> uploadCallback, ByteBuffer source)
public boolean
uploadStagedAllocations(GpuDevice gpuDevice, StagingBuffer$Uploader uploader)
method_1_2178(class_1_1209 arg0, class_1_686$class_1_688 arg1)
upload(GpuDevice device, StagingBuffer$Uploader uploader)
private static <T, U extends T> void
runCallbackUnchecked(T key, UberGpuBuffer$StagedAllocationEntry<U> value)
method_1_4153(T arg0, class_1_296$class_1_297<U> arg1)
callUploadCallback(T key, UberBuffer$StagedAllocation<U> allocation)
public AllocationManager$Allocation
getAllocation(T allocationKey)
method_1_2174(T arg0)
get(T data)
public void
removeAllocation(T allocationKey)
method_1_2177(T arg0)
dispose(T data)
private void
freeAllocation(T allocationKey)
method_1_2173(T arg0)
freeAllocation(T data)
public GpuBuffer
getGpuBuffer(TlsfAllocator$Allocation allocation)
method_1_2175(class_1_291$class_1_292 arg0)
getBufferOfAllocation(AllocationManager$Allocation allocation)
public void
printStatistics()
method_1_2176()
logState()
public void
close()