net.minecraft.client.gl

class GlCommandEncoderBackend

implements CommandEncoderBackend, AutoCloseable

com.mojang.blaze3d.opengl.GlCommandEncoder
net.minecraft.class_10860
net.minecraft.client.gl.GlCommandEncoderBackend

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
field_57843
LOGGER
public static final int
MAX_SUBMITS_IN_FLIGHT
field_1_7067
NUM_SYNC_OBJECTS
private static final long
NO_FENCE
field_1_7068
field_1_7068
private final GlBackend
device
field_57844
backend
private final GlGpuBufferAllocator
transientMemory
field_1_6939
gpuBufferAllocator
private final long[]
fences
field_1_7070
sync
private long
currentSubmitIndex
field_1_7069
submitIndex
private final int
readFbo
field_57845
temporaryFb1
private final int
drawFbo
field_57846
temporaryFb2
private RenderPipeline
lastPipeline
field_57847
currentPipeline
private GlShaderProgram
lastProgram
field_57849
currentProgram
private VertexBufferManager$AllocatedBuffer
lastVertexArray
field_1_6298
vertexBuffer
private final List<GlTextureLike>
renderPassColorTextures
field_1_6299
colorAttachmentTextures
static final boolean
$assertionsDisabled
field_1_6938
field_1_6938

Constructor summary

ModifierConstructor
protected (GlBackend backend)

Method summary

Modifier and TypeMethod
public void
close()
public long
currentSubmitIndex()
method_1_6295()
getSubmitIndex()
public int
currentSubmitSlot()
method_1_6296()
getCurrentSyncIndex()
public void
submit()
method_1_4410()
submit()
public boolean
awaitSubmit(long index, long timeoutNS)
method_1_6294(long arg0, long arg1)
wait(long index, long arg1)
public GpuBufferAllocator
transientMemory()
method_1_6231()
getGpuBufferAllocator()
public RenderPassBackend
createRenderPass(RenderPassDescriptor descriptor)
method_1_1391(class_1_900 arg0)
createRenderPass(RenderPassDescription arg0)
public void
clearColorTexture(GpuTexture colorTexture, org.joml.Vector4fc clearColor)
method_1_1383(GpuTexture arg0, org.joml.Vector4fc arg1)
clearColorTexture(GpuTexture arg0, org.joml.Vector4fc arg1)
public void
clearColorAndDepthTextures(GpuTexture colorTexture, org.joml.Vector4fc clearColor, GpuTexture depthTexture, double clearDepth)
method_1_1381(GpuTexture arg0, org.joml.Vector4fc arg1, GpuTexture arg2, double arg3)
clearColorAndDepthTextures(GpuTexture arg0, org.joml.Vector4fc arg1, GpuTexture arg2, double arg3)
public void
clearColorAndDepthTextures(GpuTexture colorTexture, org.joml.Vector4fc clearColor, GpuTexture depthTexture, double clearDepth, int regionX, int regionY, int regionWidth, int regionHeight)
method_1_1382(GpuTexture arg0, org.joml.Vector4fc arg1, GpuTexture arg2, double arg3, int arg4, int arg5, int arg6, int arg7)
clearColorAndDepthTextures(GpuTexture arg0, org.joml.Vector4fc arg1, GpuTexture arg2, double arg3, int arg4, int arg5, int arg6, int arg7)
public void
clearDepthTexture(GpuTexture depthTexture, double clearDepth)
method_1_1384(GpuTexture arg0, double arg1)
clearDepthTexture(GpuTexture arg0, double arg1)
public void
writeToBuffer(GpuBufferSlice slice, ByteBuffer data)
method_1_1397(GpuBufferSlice arg0, ByteBuffer arg1)
writeToBuffer(GpuBufferSlice arg0, ByteBuffer arg1)
public void
copyToBuffer(GpuBufferSlice source, GpuBufferSlice target)
method_1_1388(GpuBufferSlice arg0, GpuBufferSlice arg1)
copyToBuffer(GpuBufferSlice arg0, GpuBufferSlice arg1)
public void
writeToTexture(GpuTexture destination, ByteBuffer source, int mipLevel, int depthOrLayer, int destX, int destY, int width, int height)
method_1_1399(GpuTexture arg0, ByteBuffer arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7)
writeToTexture(GpuTexture arg0, ByteBuffer arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7)
public void
copyBufferToTexture(GpuBufferSlice source, int sourceX, int sourceY, int sourceWidth, int sourceHeight, GpuTexture destination, int destinationX, int destinationY, int copyWidth, int copyHeight, int mipLevel, int arrayLayer)
method_1_1398(GpuBufferSlice arg0, int arg1, int arg2, int arg3, int arg4, GpuTexture arg5, int arg6, int arg7, int arg8, int arg9, int arg10, int arg11)
writeToTexture(GpuBufferSlice arg0, int arg1, int arg2, int arg3, int arg4, GpuTexture arg5, int arg6, int arg7, int arg8, int arg9, int arg10, int arg11)
public void
copyTextureToBuffer(GpuTexture source, GpuBuffer destination, long offset, Runnable callback, int mipLevel)
method_1_1385(GpuTexture arg0, GpuBuffer arg1, long arg2, Runnable arg3, int arg4)
copyTextureToBuffer(GpuTexture arg0, GpuBuffer arg1, long arg2, Runnable arg3, int arg4)
public void
copyTextureToBuffer(GpuTexture source, GpuBuffer destination, long offset, Runnable callback, int mipLevel, int x, int y, int width, int height)
method_1_1386(GpuTexture arg0, GpuBuffer arg1, long arg2, Runnable arg3, int arg4, int arg5, int arg6, int arg7, int arg8)
copyTextureToBuffer(GpuTexture arg0, GpuBuffer arg1, long arg2, Runnable arg3, int arg4, int arg5, int arg6, int arg7, int arg8)
public void
copyTextureToTexture(GpuTexture source, GpuTexture destination, int mipLevel, int destX, int destY, int sourceX, int sourceY, int width, int height)
method_1_1387(GpuTexture arg0, GpuTexture arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, int arg8)
copyTextureToTexture(GpuTexture arg0, GpuTexture arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, int arg8)
public void
presentTexture(GpuTextureView textureView, int swapchainWidth, int swapchainHeight)
method_1_1394(GpuTextureView arg0, int arg1, int arg2)
presentTexture(GpuTextureView textureView, int arg1, int arg2)
public GpuFence
createFence()
method_1_1389()
createFence()
protected <T> void
executeDrawMultiple(GlRenderPass renderPass, Collection<RenderPass$Draw<T>> draws, GpuBuffer defaultIndexBuffer, IndexType defaultIndexType, Collection<String> dynamicUniforms, T uniformArgument)
method_68355(class_10866 arg0, Collection<RenderPass$class_10884<T>> arg1, GpuBuffer arg2, class_5595 arg3, Collection<String> arg4, T arg5)
drawObjectsWithRenderPass(GlRenderPassBackend pass, Collection<RenderPass$RenderObject<T>> objects, GpuBuffer indexBuffer, IndexType indexType, Collection<String> validationSkippedUniforms, T arg5)
private void
validateDraw(GlRenderPass renderPass, IndexType indexType)
method_1_5503(class_10866 arg0, class_5595 arg1)
assertUsable(GlRenderPassBackend renderPass, IndexType indexType)
protected void
executeDraw(GlRenderPass renderPass, int baseVertex, int firstIndex, int drawCount, IndexType indexType, int instanceCount, int firstInstance)
method_68352(class_10866 arg0, int arg1, int arg2, int arg3, class_5595 arg4, int arg5, int arg6)
draw(GlRenderPassBackend pass, int baseVertex, int firstIndex, int count, IndexType indexType, int instanceCount, int firstInstance)
public void
executeDraws(GlRenderPass renderPass, IndexType indexType, org.lwjgl.PointerBuffer firstIndexOffsets, IntBuffer indexCounts, IntBuffer vertexOffsets, int drawCount)
method_1_6148(class_10866 arg0, class_5595 arg1, org.lwjgl.PointerBuffer arg2, IntBuffer arg3, IntBuffer arg4, int arg5)
multiDraw(GlRenderPassBackend pass, IndexType indexType, org.lwjgl.PointerBuffer indices, IntBuffer count, IntBuffer first, int drawCount)
protected void
executeDrawIndirect(GlRenderPass renderPass, IndexType indexType, GlBuffer commands, long offset, int drawCount)
method_1_5502(class_10866 arg0, class_5595 arg1, class_1_1010 arg2, long arg3, int arg4)
drawIndirect(GlRenderPassBackend pass, IndexType indexType, GlGpuBuffer buffer, long offset, int drawCount)
private void
drawFromBuffers(GlRenderPass renderPass, int baseVertex, int firstIndex, int drawCount, IndexType indexType, GlRenderPipeline pipeline, int instanceCount, int firstInstance)
method_68353(class_10866 arg0, int arg1, int arg2, int arg3, class_5595 arg4, class_10867 arg5, int arg6, int arg7)
drawObjectWithRenderPass(GlRenderPassBackend pass, int baseVertex, int firstIndex, int count, IndexType indexType, GlCompiledRenderPipeline pipeline, int instanceCount, int firstInstance)
private boolean
trySetup(GlRenderPass renderPass, Collection<String> dynamicUniforms)
method_68351(class_10866 arg0, Collection<String> arg1)
setupRenderPass(GlRenderPassBackend pass, Collection<String> validationSkippedUniforms)
private void
applyPipelineState(RenderPipeline pipeline)
method_68356(RenderPipeline arg0)
setPipelineAndApplyState(RenderPipeline pipeline)
public void
submitRenderPass()
method_68346()
closePass()
public void
writeTimestamp(GpuQueryPool pool, int index)
method_1_4411(class_1_685 arg0, int arg1)
writeTimestamp(TimestampQueryPool arg0, int arg1)
private static void
lambda$executeDrawMultiple$0(GlRenderPass arg0, String arg1, GpuBufferSlice arg2)
method_68354(class_10866 arg0, String arg1, GpuBufferSlice arg2)
method_68354(GlRenderPassBackend arg0, String name, GpuBufferSlice bufferSlice)