Class RenderPipeline
java.lang.Object
com.mojang.blaze3d.pipeline.RenderPipeline
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final recordstatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ColorTargetStateprivate final booleanprivate final @Nullable DepthStencilStateprivate final Identifierprivate final Identifierprivate final PolygonModeprivate final ShaderDefinesprivate final intprivate static intprivate final Optional<StencilTest> private final List<RenderPipeline.UniformDescription> private final VertexFormatprivate final VertexFormat.Modeprivate final Identifier -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRenderPipeline(Identifier location, Identifier vertexShader, Identifier fragmentShader, ShaderDefines shaderDefines, List<String> samplers, List<RenderPipeline.UniformDescription> uniforms, ColorTargetState colorTargetState, @Nullable DepthStencilState depthStencilState, PolygonMode polygonMode, boolean cull, VertexFormat vertexFormat, VertexFormat.Mode vertexFormatMode, int sortKey) Deprecated.protectedRenderPipeline(Identifier location, Identifier vertexShader, Identifier fragmentShader, ShaderDefines shaderDefines, List<String> samplers, List<RenderPipeline.UniformDescription> uniforms, ColorTargetState colorTargetState, @Nullable DepthStencilState depthStencilState, PolygonMode polygonMode, boolean cull, VertexFormat vertexFormat, VertexFormat.Mode vertexFormatMode, int sortKey, Optional<StencilTest> stencilTest) -
Method Summary
Modifier and TypeMethodDescriptionstatic RenderPipeline.Builderbuilder(RenderPipeline.Snippet... snippets) @Nullable DepthStencilStateintbooleanisCull()Neo: Create aRenderPipeline.Builderfrom thisRenderPipelineto adjust its configuration and build a new, modifiedRenderPipelinefrom ittoString()static voidboolean
-
Field Details
-
location
-
vertexShader
-
fragmentShader
-
shaderDefines
-
samplers
-
uniforms
-
depthStencilState
-
polygonMode
-
cull
private final boolean cull -
colorTargetState
-
vertexFormat
-
vertexFormatMode
-
sortKey
private final int sortKey -
sortKeySeed
private static int sortKeySeed -
stencilTest
-
-
Constructor Details
-
RenderPipeline
@Deprecated protected RenderPipeline(Identifier location, Identifier vertexShader, Identifier fragmentShader, ShaderDefines shaderDefines, List<String> samplers, List<RenderPipeline.UniformDescription> uniforms, ColorTargetState colorTargetState, @Nullable DepthStencilState depthStencilState, PolygonMode polygonMode, boolean cull, VertexFormat vertexFormat, VertexFormat.Mode vertexFormatMode, int sortKey) -
RenderPipeline
protected RenderPipeline(Identifier location, Identifier vertexShader, Identifier fragmentShader, ShaderDefines shaderDefines, List<String> samplers, List<RenderPipeline.UniformDescription> uniforms, ColorTargetState colorTargetState, @Nullable DepthStencilState depthStencilState, PolygonMode polygonMode, boolean cull, VertexFormat vertexFormat, VertexFormat.Mode vertexFormatMode, int sortKey, Optional<StencilTest> stencilTest)
-
-
Method Details
-
getSortKey
public int getSortKey() -
updateSortKeySeed
public static void updateSortKeySeed() -
toString
-
getPolygonMode
-
isCull
public boolean isCull() -
getColorTargetState
-
getDepthStencilState
-
getLocation
-
getVertexFormat
-
getVertexFormatMode
-
getVertexShader
-
getFragmentShader
-
getShaderDefines
-
getSamplers
-
getUniforms
-
wantsDepthTexture
public boolean wantsDepthTexture() -
getStencilTest
-
toBuilder
Neo: Create aRenderPipeline.Builderfrom thisRenderPipelineto adjust its configuration and build a new, modifiedRenderPipelinefrom it -
builder
-
RenderPipeline(Identifier, Identifier, Identifier, ShaderDefines, List, List, ColorTargetState, DepthStencilState, PolygonMode, boolean, VertexFormat, VertexFormat.Mode, int, Optional)instead