net.minecraft.client.gl

class GlCommandEncoder

implements CommandEncoderBackend

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

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
field_57843
LOGGER
private final GlBackend
device
field_57844
backend
private final int
readFbo
field_57845
temporaryFb1
private final int
drawFbo
field_57846
temporaryFb2
private RenderPipeline
lastPipeline
field_57847
currentPipeline
private boolean
inRenderPass
field_57848
renderPassOpen
private ShaderProgram
lastProgram
field_57849
currentProgram
private GlTimerQuery
activeTimerQuery
field_63814
timerQuery

Constructor summary

ModifierConstructor
protected (GlBackend backend)

Method summary

Modifier and TypeMethod
public RenderPassBackend
createRenderPass(Supplier<String> label, GpuTextureView colorTexture, OptionalInt clearColor)
method_1_1390(Supplier<String> arg0, com.mojang.blaze3d.textures.GpuTextureView arg1, OptionalInt arg2)
createRenderPass(Supplier<String> arg0, com.mojang.blaze3d.textures.GpuTextureView arg1, OptionalInt arg2)
public RenderPassBackend
createRenderPass(Supplier<String> label, GpuTextureView colorTexture, OptionalInt clearColor, GpuTextureView depthTexture, OptionalDouble clearDepth)
method_1_1391(Supplier<String> arg0, com.mojang.blaze3d.textures.GpuTextureView arg1, OptionalInt arg2, com.mojang.blaze3d.textures.GpuTextureView arg3, OptionalDouble arg4)
createRenderPass(Supplier<String> arg0, com.mojang.blaze3d.textures.GpuTextureView arg1, OptionalInt arg2, com.mojang.blaze3d.textures.GpuTextureView arg3, OptionalDouble arg4)
public boolean
isInRenderPass()
method_1_1392()
isRenderPassOpen()
public void
clearColorTexture(GpuTexture colorTexture, int clearColor)
method_1_1383(GpuTexture arg0, int arg1)
clearColorTexture(GpuTexture arg0, int arg1)
public void
clearColorAndDepthTextures(GpuTexture colorTexture, int clearColor, GpuTexture depthTexture, double clearDepth)
method_1_1381(GpuTexture arg0, int arg1, GpuTexture arg2, double arg3)
clearColorAndDepthTextures(GpuTexture arg0, int arg1, GpuTexture arg2, double arg3)
public void
clearColorAndDepthTextures(GpuTexture colorTexture, int clearColor, GpuTexture depthTexture, double clearDepth, int regionX, int regionY, int regionWidth, int regionHeight)
method_1_1382(GpuTexture arg0, int arg1, GpuTexture arg2, double arg3, int arg4, int arg5, int arg6, int arg7)
clearColorAndDepthTextures(GpuTexture arg0, int 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 GpuBuffer$MappedView
mapBuffer(GpuBufferSlice slice, boolean read, boolean write)
method_1_1393(GpuBufferSlice arg0, boolean arg1, boolean arg2)
mapBuffer(GpuBufferSlice arg0, boolean arg1, boolean arg2)
public void
copyToBuffer(GpuBufferSlice source, GpuBufferSlice target)
method_1_1388(GpuBufferSlice arg0, GpuBufferSlice arg1)
copyToBuffer(GpuBufferSlice arg0, GpuBufferSlice arg1)
public void
writeToTexture(GpuTexture destination, NativeImage source, int mipLevel, int depthOrLayer, int destX, int destY, int width, int height, int sourceX, int sourceY)
method_1_1398(GpuTexture arg0, class_1011 arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, int arg8, int arg9)
writeToTexture(GpuTexture arg0, NativeImage arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, int arg8, int arg9)
public void
writeToTexture(GpuTexture destination, ByteBuffer source, NativeImage$Format format, int mipLevel, int depthOrLayer, int destX, int destY, int width, int height)
method_1_1399(GpuTexture arg0, ByteBuffer arg1, class_1011$class_1012 arg2, int arg3, int arg4, int arg5, int arg6, int arg7, int arg8)
writeToTexture(GpuTexture arg0, ByteBuffer arg1, NativeImage$Format arg2, int arg3, int arg4, int arg5, int arg6, int arg7, int arg8)
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)
method_1_1394(com.mojang.blaze3d.textures.GpuTextureView arg0)
presentTexture(com.mojang.blaze3d.textures.GpuTextureView arg0)
public GpuFence
createFence()
method_1_1389()
createFence()
protected <T> void
executeDrawMultiple(GlRenderPass renderPass, Collection<RenderPass$Draw<T>> draws, GpuBuffer defaultIndexBuffer, VertexFormat$IndexType defaultIndexType, Collection<String> dynamicUniforms, T uniformArgument)
method_68355(class_10866 arg0, Collection<RenderPass$class_10884<T>> arg1, GpuBuffer arg2, VertexFormat$class_5595 arg3, Collection<String> arg4, T arg5)
drawObjectsWithRenderPass(RenderPassImpl pass, Collection<RenderPass$RenderObject<T>> objects, GpuBuffer indexBuffer, VertexFormat$IndexType indexType, Collection<String> validationSkippedUniforms, T arg5)
protected void
executeDraw(GlRenderPass renderPass, int baseVertex, int firstIndex, int drawCount, VertexFormat$IndexType indexType, int instanceCount)
method_68352(class_10866 arg0, int arg1, int arg2, int arg3, VertexFormat$class_5595 arg4, int arg5)
drawBoundObjectWithRenderPass(RenderPassImpl pass, int baseVertex, int firstIndex, int count, VertexFormat$IndexType indexType, int instanceCount)
private void
drawFromBuffers(GlRenderPass renderPass, int baseVertex, int firstIndex, int drawCount, VertexFormat$IndexType indexType, GlRenderPipeline pipeline, int instanceCount)
method_68353(class_10866 arg0, int arg1, int arg2, int arg3, VertexFormat$class_5595 arg4, class_10867 arg5, int arg6)
drawObjectWithRenderPass(RenderPassImpl pass, int baseVertex, int firstIndex, int count, VertexFormat$IndexType indexType, CompiledShaderPipeline pipeline, int instanceCount)
private boolean
trySetup(GlRenderPass renderPass, Collection<String> dynamicUniforms)
method_68351(class_10866 arg0, Collection<String> arg1)
setupRenderPass(RenderPassImpl pass, Collection<String> validationSkippedUniforms)
private void
applyPipelineState(RenderPipeline pipeline)
method_68356(RenderPipeline arg0)
setPipelineAndApplyState(RenderPipeline pipeline)
public void
finishRenderPass()
method_68346()
closePass()
public GpuQuery
timerQueryBegin()
method_1_1395()
timerQueryBegin()
public void
timerQueryEnd(GpuQuery query)
method_1_1396(com.mojang.blaze3d.systems.GpuQuery arg0)
timerQueryEnd(com.mojang.blaze3d.systems.GpuQuery arg0)
private static void
lambda$executeDrawMultiple$0(GlRenderPass arg0, String arg1, GpuBufferSlice arg2)
method_68354(class_10866 arg0, String arg1, GpuBufferSlice arg2)
method_68354(RenderPassImpl arg0, String name, GpuBufferSlice arg2)