Package com.mojang.blaze3d.opengl
Class GlRenderPass
java.lang.Object
com.mojang.blaze3d.opengl.GlRenderPass
- All Implemented Interfaces:
RenderPass
,AutoCloseable
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.mojang.blaze3d.systems.RenderPass
RenderPass.Draw, RenderPass.UniformUploader
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private final GlCommandEncoder
private final boolean
protected GpuBuffer
protected VertexFormat.IndexType
protected static final int
protected GlRenderPipeline
protected final HashMap
<String, GpuTexture> protected final ScissorState
protected StencilTest
static final boolean
protected final GpuBuffer[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
bindSampler
(String p_410267_, GpuTexture p_410320_) void
close()
void
void
void
draw
(int p_410870_, int p_410463_) void
drawIndexed
(int p_410452_, int p_410034_) void
drawMultipleIndexed
(Collection<RenderPass.Draw> p_410499_, GpuBuffer p_412214_, VertexFormat.IndexType p_412273_) void
enableScissor
(int p_409849_, int p_410447_, int p_410110_, int p_410679_) void
enableScissor
(ScissorState p_409626_) void
enableStencilTest
(StencilTest stencilTest) boolean
void
setIndexBuffer
(GpuBuffer p_410828_, VertexFormat.IndexType p_410040_) void
setPipeline
(RenderPipeline p_409823_) void
setUniform
(String p_409689_, float... p_410360_) void
setUniform
(String p_410095_, int... p_410374_) void
setUniform
(String p_410717_, org.joml.Matrix4f p_409843_) void
setVertexBuffer
(int p_410797_, GpuBuffer p_410501_)
-
Field Details
-
MAX_VERTEX_BUFFERS
protected static final int MAX_VERTEX_BUFFERS- See Also:
-
VALIDATION
public static final boolean VALIDATION -
encoder
-
hasDepthTexture
private final boolean hasDepthTexture -
closed
private boolean closed -
pipeline
-
vertexBuffers
-
indexBuffer
-
indexType
-
scissorState
-
uniforms
-
samplers
-
dirtyUniforms
-
dirtySamplers
-
stencilTest
-
-
Constructor Details
-
GlRenderPass
-
-
Method Details
-
hasDepthTexture
public boolean hasDepthTexture() -
setPipeline
- Specified by:
setPipeline
in interfaceRenderPass
-
bindSampler
- Specified by:
bindSampler
in interfaceRenderPass
-
setUniform
- Specified by:
setUniform
in interfaceRenderPass
-
setUniform
- Specified by:
setUniform
in interfaceRenderPass
-
setUniform
- Specified by:
setUniform
in interfaceRenderPass
-
enableScissor
- Specified by:
enableScissor
in interfaceRenderPass
-
enableScissor
public void enableScissor(int p_409849_, int p_410447_, int p_410110_, int p_410679_) - Specified by:
enableScissor
in interfaceRenderPass
-
disableScissor
public void disableScissor()- Specified by:
disableScissor
in interfaceRenderPass
-
enableStencilTest
- Specified by:
enableStencilTest
in interfaceRenderPass
-
disableStencilTest
public void disableStencilTest()- Specified by:
disableStencilTest
in interfaceRenderPass
-
setVertexBuffer
- Specified by:
setVertexBuffer
in interfaceRenderPass
-
setIndexBuffer
- Specified by:
setIndexBuffer
in interfaceRenderPass
-
drawIndexed
public void drawIndexed(int p_410452_, int p_410034_) - Specified by:
drawIndexed
in interfaceRenderPass
-
drawMultipleIndexed
public void drawMultipleIndexed(Collection<RenderPass.Draw> p_410499_, @Nullable GpuBuffer p_412214_, @Nullable VertexFormat.IndexType p_412273_) - Specified by:
drawMultipleIndexed
in interfaceRenderPass
-
draw
public void draw(int p_410870_, int p_410463_) - Specified by:
draw
in interfaceRenderPass
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceRenderPass
-