net.minecraft.client.gl

class GlRenderPassBackend

implements RenderPassBackend

com.mojang.renderpearl.backend.opengl.GlRenderPass
net.minecraft.class_10866
net.minecraft.client.gl.GlRenderPassBackend

Field summary

Modifier and TypeField
public static final boolean
VALIDATION
field_57867
IS_DEVELOPMENT
private final GlCommandEncoderBackend
encoder
field_57877
commandEncoder
private final GlBackend
device
field_1_1151
device
private final boolean
hasDepthTexture
field_57878
hasDepth
private final ScissorState
defaultScissorState
field_1_5954
defaultScissorState
protected GlCompiledRenderPipeline
pipeline
field_57868
pipeline
protected final GpuBufferSlice[]
vertexBuffers
field_57869
vertexBuffers
protected boolean
vertexBufferDirty
field_1_6270
dirty
protected GpuBuffer
indexBuffer
field_57870
indexBuffer
protected IndexType
indexType
field_57871
indexType
private final ScissorState
scissorState
field_57872
scissorState
protected final HashMap<String, GpuBufferSlice>
uniforms
field_57873
simpleUniforms
protected final HashMap<String, GlRenderPassBackend$SamplerUniform>
samplers
field_57874
samplerUniforms
protected final Set<String>
dirtyUniforms
field_57875
setSimpleUniforms
protected final int
colorAttachmentCount
field_1_6269
numColorAttachments

Constructor summary

ModifierConstructor
public (GlCommandEncoderBackend commandEncoder, GlBackend device, boolean hasDepth, int numColorAttachments, ScissorState defaultScissorState)

Method summary

Modifier and TypeMethod
public boolean
hasDepthTexture()
method_68407()
hasDepth()
public void
pushDebugGroup(Supplier<String> label)
method_1_1333(Supplier<String> arg0)
pushDebugGroup(Supplier<String> arg0)
public void
popDebugGroup()
method_1_1332()
popDebugGroup()
public void
setPipeline(CompiledRenderPipeline pipeline)
method_1_1335(class_1_1285 arg0)
setPipeline(CompiledPipeline arg0)
public void
bindTexture(String name, GpuTextureView textureView, GpuSampler sampler)
method_1_1325(String arg0, class_1_1260 arg1, class_12137 arg2)
bindTexture(String arg0, GpuTextureView arg1, GpuSampler arg2)
public void
setUniform(String name, GpuBuffer value)
method_1_1336(String arg0, class_1_1211 arg1)
setUniform(String arg0, GpuBuffer arg1)
public void
setUniform(String name, GpuBufferSlice value)
method_1_1337(String arg0, class_1_1254 arg1)
setUniform(String arg0, GpuBufferSlice arg1)
public void
enableScissor(int x, int y, int width, int height)
method_1_1330(int arg0, int arg1, int arg2, int arg3)
enableScissor(int arg0, int arg1, int arg2, int arg3)
public void
disableScissor()
method_1_1326()
disableScissor()
public boolean
isScissorEnabled()
method_70808()
isScissorEnabled()
public int
getScissorX()
method_70809()
getScissorX()
public int
getScissorY()
method_70810()
getScissorY()
public int
getScissorWidth()
method_70811()
getScissorWidth()
public int
getScissorHeight()
method_70812()
getScissorHeight()
public void
setVertexBuffer(int slot, GpuBufferSlice vertexBuffer)
method_1_1338(int arg0, class_1_1254 arg1)
setVertexBuffer(int arg0, GpuBufferSlice arg1)
public void
setIndexBuffer(GpuBuffer indexBuffer, IndexType indexType)
method_1_1334(class_1_1211 arg0, class_5595 arg1)
setIndexBuffer(GpuBuffer arg0, IndexType arg1)
public void
drawIndexed(int indexCount, int instanceCount, int firstIndex, int vertexOffset, int firstInstance)
method_1_1328(int arg0, int arg1, int arg2, int arg3, int arg4)
drawIndexed(int arg0, int arg1, int arg2, int arg3, int arg4)
public void
multiDrawIndexed(IntBuffer drawParameters, int instanceCount, int firstInstance, int drawCount)
method_1_6188(IntBuffer arg0, int arg1, int arg2, int arg3)
multiDrawIndexedInterleaved(IntBuffer arg0, int arg1, int arg2, int arg3)
public void
multiDrawIndexed(org.lwjgl.PointerBuffer firstIndexOffsets, IntBuffer indexCounts, IntBuffer vertexOffsets, int drawCount)
method_1_6189(org.lwjgl.PointerBuffer arg0, IntBuffer arg1, IntBuffer arg2, int arg3)
multiDrawIndexedSeparate(org.lwjgl.PointerBuffer arg0, IntBuffer arg1, IntBuffer arg2, int arg3)
public void
drawIndexedIndirect(GpuBufferSlice commands, int drawCount)
method_1_5511(class_1_1254 arg0, int arg1)
drawIndexedIndirect(GpuBufferSlice arg0, int arg1)
public <T> void
drawMultipleIndexed(Collection<RenderPass$Draw<T>> draws, GpuBuffer defaultIndexBuffer, IndexType defaultIndexType, Collection<String> dynamicUniforms, T uniformArgument)
method_1_1329(Collection<class_1_1227$class_10884<T>> arg0, class_1_1211 arg1, class_5595 arg2, Collection<String> arg3, T arg4)
drawMultipleIndexed(Collection<RenderPass$RenderObject<T>> arg0, GpuBuffer arg1, IndexType arg2, Collection<String> arg3, T arg4)
public void
draw(int vertexCount, int instanceCount, int firstVertex, int firstInstance)
method_1_1327(int arg0, int arg1, int arg2, int arg3)
draw(int arg0, int arg1, int arg2, int arg3)
public void
multiDraw(IntBuffer drawParameters, int instanceCount, int firstInstance, int drawCount)
method_1_6186(IntBuffer arg0, int arg1, int arg2, int arg3)
multiDrawInterleaved(IntBuffer arg0, int arg1, int arg2, int arg3)
public void
multiDraw(IntBuffer firstVertices, IntBuffer vertexCounts, int drawCount)
method_1_6187(IntBuffer arg0, IntBuffer arg1, int arg2)
multiDrawSeparate(IntBuffer arg0, IntBuffer arg1, int arg2)
public void
drawIndirect(GpuBufferSlice commands, int drawCount)
method_1_5512(class_1_1254 arg0, int arg1)
drawIndirect(GpuBufferSlice arg0, int arg1)
public void
writeTimestamp(GpuQueryPool pool, int index)
method_1_4243(class_1_685 arg0, int arg1)
writeTimestamp(TimestampQueryPool arg0, int arg1)