Class GlRenderPass
java.lang.Object
com.mojang.renderpearl.backend.opengl.GlRenderPass
- All Implemented Interfaces:
RenderPassBackend
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected final intprivate final ScissorStateprivate final GlDeviceprotected final it.unimi.dsi.fastutil.booleans.BooleanListprivate final GlCommandEncoderprotected booleanprotected IndexTypeprotected @Nullable GlRenderPipelineprotected @Nullable GpuBufferSliceprotected booleanprivate final ScissorStateprotected booleanprotected final it.unimi.dsi.fastutil.objects.ReferenceList<Object> protected booleanprotected final @Nullable GpuBufferSlice[] -
Constructor Summary
ConstructorsConstructorDescriptionGlRenderPass(GlCommandEncoder encoder, GlDevice device, int colorAttachmentCount, ScissorState defaultScissorState) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddraw(int vertexCount, int instanceCount, int firstVertex, int firstInstance) voiddrawIndexed(int indexCount, int instanceCount, int firstIndex, int vertexOffset, int firstInstance) voiddrawIndexedIndirect(GpuBufferSlice commands, int drawCount) voiddrawIndirect(GpuBufferSlice commands, int drawCount) voidenableScissor(int x, int y, int width, int height) intintintintbooleanvoidvoidvoidmultiDrawIndexed(IntBuffer drawParameters, int instanceCount, int firstInstance, int drawCount) voidmultiDrawIndexed(org.lwjgl.PointerBuffer firstIndexOffsets, IntBuffer indexCounts, IntBuffer vertexOffsets, int drawCount) voidvoidpushConstants(ByteBuffer value) voidpushDebugGroup(Supplier<String> label) voidsetIndexBuffer(@Nullable GpuBuffer indexBuffer, IndexType indexType) voidsetPipeline(BackendRenderPipeline pipeline) voidsetUniform(int index, @Nullable Object value) voidsetVertexBuffer(int slot, @Nullable GpuBufferSlice vertexBuffer) voidsetViewport(int x, int y, int width, int height) voidwriteTimestamp(GpuQueryPool pool, int index)
-
Field Details
-
encoder
-
device
-
defaultScissorState
-
pipeline
-
vertexBuffers
-
vertexBufferDirty
protected boolean vertexBufferDirty -
indexBuffer
-
indexType
-
indexBufferDirty
protected boolean indexBufferDirty -
scissorState
-
scissorStateDirty
protected boolean scissorStateDirty -
uniforms
-
dirtyUniforms
protected final it.unimi.dsi.fastutil.booleans.BooleanList dirtyUniforms -
anyUniformDirty
protected boolean anyUniformDirty -
pushConstants
-
pushConstantsDirty
protected boolean pushConstantsDirty -
colorAttachmentCount
protected final int colorAttachmentCount
-
-
Constructor Details
-
GlRenderPass
public GlRenderPass(GlCommandEncoder encoder, GlDevice device, int colorAttachmentCount, ScissorState defaultScissorState)
-
-
Method Details
-
pushDebugGroup
- Specified by:
pushDebugGroupin interfaceRenderPassBackend
-
popDebugGroup
public void popDebugGroup()- Specified by:
popDebugGroupin interfaceRenderPassBackend
-
setPipeline
- Specified by:
setPipelinein interfaceRenderPassBackend
-
setUniform
- Specified by:
setUniformin interfaceRenderPassBackend
-
pushConstants
- Specified by:
pushConstantsin interfaceRenderPassBackend
-
setViewport
public void setViewport(int x, int y, int width, int height) - Specified by:
setViewportin interfaceRenderPassBackend
-
enableScissor
public void enableScissor(int x, int y, int width, int height) - Specified by:
enableScissorin interfaceRenderPassBackend
-
disableScissor
public void disableScissor()- Specified by:
disableScissorin interfaceRenderPassBackend
-
isScissorEnabled
public boolean isScissorEnabled() -
getScissorX
public int getScissorX() -
getScissorY
public int getScissorY() -
getScissorWidth
public int getScissorWidth() -
getScissorHeight
public int getScissorHeight() -
setVertexBuffer
- Specified by:
setVertexBufferin interfaceRenderPassBackend
-
setIndexBuffer
- Specified by:
setIndexBufferin interfaceRenderPassBackend
-
drawIndexed
public void drawIndexed(int indexCount, int instanceCount, int firstIndex, int vertexOffset, int firstInstance) - Specified by:
drawIndexedin interfaceRenderPassBackend
-
multiDrawIndexed
public void multiDrawIndexed(IntBuffer drawParameters, int instanceCount, int firstInstance, int drawCount) - Specified by:
multiDrawIndexedin interfaceRenderPassBackend
-
multiDrawIndexed
public void multiDrawIndexed(org.lwjgl.PointerBuffer firstIndexOffsets, IntBuffer indexCounts, IntBuffer vertexOffsets, int drawCount) - Specified by:
multiDrawIndexedin interfaceRenderPassBackend
-
drawIndexedIndirect
- Specified by:
drawIndexedIndirectin interfaceRenderPassBackend
-
draw
public void draw(int vertexCount, int instanceCount, int firstVertex, int firstInstance) - Specified by:
drawin interfaceRenderPassBackend
-
multiDraw
public void multiDraw(IntBuffer drawParameters, int instanceCount, int firstInstance, int drawCount) - Specified by:
multiDrawin interfaceRenderPassBackend
-
multiDraw
- Specified by:
multiDrawin interfaceRenderPassBackend
-
drawIndirect
- Specified by:
drawIndirectin interfaceRenderPassBackend
-
writeTimestamp
- Specified by:
writeTimestampin interfaceRenderPassBackend
-