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
alignSize
field_1_1763
vertexSize
private final UberBuffer$StagingBuffer
stagingBuffer
field_1_1769
staging
private int
stagingBufferUsedSize
field_1_1770
bytesStaged
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 it.unimi.dsi.fastutil.objects.Object2ObjectOpenHashMap<T, UberBuffer$StagedAllocation<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, GpuDevice device, int stagingBufferSize, GpuDeviceInfo deviceInfo)

Method summary

Modifier and TypeMethod
public boolean
addAllocation(T allocationKey, UberGpuBuffer$UploadCallback<T> callback, ByteBuffer buffer)
method_1_2172(T arg0, class_1_296$class_1_302<T> arg1, ByteBuffer arg2)
stageRemainder(T data, UberBuffer$DataConsumer<T> uploadCallback, ByteBuffer source)
public boolean
uploadStagedAllocations(GpuDevice gpuDevice, CommandEncoder encoder)
method_1_2178(GpuDevice arg0, CommandEncoder arg1)
upload(GpuDevice device, CommandEncoder encoder)
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()