com.mojang.blaze3d.buffers

public class CopyingAppendBuffer<T extends AppendBuffer$Uploadable>

implements AppendBuffer<T>

net.minecraft.client.renderer.DynamicGpuDataStorageNonMapped
net.minecraft.class_1_1514
com.mojang.blaze3d.buffers.CopyingAppendBuffer

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
field_1_10273
LOGGER
private final List<GpuBuffer>
oldBuffers
field_1_10280
oldBuffers
private final int
blockSize
field_1_10274
blockSize
private GpuBuffer
gpuBuffer
field_1_10277
buffer
private ByteBuffer
cpuBuffer
field_1_10276
staging
private int
nextBlock
field_1_10279
count
private int
capacity
field_1_10275
capacity
private final String
label
field_1_10278
name
private final int
usage
field_1_10281
usage

Constructor summary

ModifierConstructor
public (String name, int blockSize, int usage, int capacity)

Method summary

Modifier and TypeMethod
public void
endFrame()
method_71100()
clear()
public GpuBufferSlice
writeData(T gpuData)
method_71102(T arg0)
write(T arg0)
public GpuBufferSlice[]
writeData(T[] dataArray)
method_71103(T[] arg0)
writeAll(T[] arg0)
private void
resizeBuffers(int newCapacity)
method_1_10094(int arg0)
growBuffer(int capacity)
public GpuBufferSlice
writeDataBatched(List<T> dataList)
method_1_9251(List<T> arg0)
extend(List<T> arg0)
public GpuBufferSlice[]
writeDataBatchedMultiple(List<List<T>> dataLists)
method_1_9252(List<List<T>> arg0)
extendMultiple(List<List<T>> arg0)
public int
usage()
method_1_9250()
getUsage()
public void
close()
private String
lambda$resizeBuffers$0()
method_1_10093()
method_1_10093()
private String
lambda$new$0(String arg0)
method_1_10092(String arg0)
method_1_10092(String arg0)