Package com.mojang.blaze3d.pipeline
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 Optional<BlendFunction> private final LogicOpprivate final booleanprivate final floatprivate final floatprivate final DepthTestFunctionprivate final ResourceLocationprivate final ResourceLocationprivate final PolygonModeprivate final ShaderDefinesprivate final intprivate static intprivate final Optional<StencilTest> private final List<RenderPipeline.UniformDescription> private final VertexFormatprivate final VertexFormat.Modeprivate final ResourceLocationprivate final booleanprivate final booleanprivate final boolean -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRenderPipeline(ResourceLocation pLocation, ResourceLocation pVertexShader, ResourceLocation pFragmentShader, ShaderDefines pShaderDefines, List<String> pSamplers, List<RenderPipeline.UniformDescription> pUniforms, Optional<BlendFunction> pBlendFunction, DepthTestFunction pDepthTestFunction, PolygonMode pPolygonMode, boolean pCull, boolean pWriteColor, boolean pWriteAlpha, boolean pWriteDepth, LogicOp pColorLogic, VertexFormat pVertexFormat, VertexFormat.Mode pVertexFormatMode, float pDepthBiasScaleFactor, float pDepthBiasConstant, int pSortKey) Deprecated.protectedRenderPipeline(ResourceLocation pLocation, ResourceLocation pVertexShader, ResourceLocation pFragmentShader, ShaderDefines pShaderDefines, List<String> pSamplers, List<RenderPipeline.UniformDescription> pUniforms, Optional<BlendFunction> pBlendFunction, DepthTestFunction pDepthTestFunction, PolygonMode pPolygonMode, boolean pCull, boolean pWriteColor, boolean pWriteAlpha, boolean pWriteDepth, LogicOp pColorLogic, VertexFormat pVertexFormat, VertexFormat.Mode pVertexFormatMode, float pDepthBiasScaleFactor, float pDepthBiasConstant, int pSortKey, Optional<StencilTest> stencilTest) -
Method Summary
Modifier and TypeMethodDescriptionstatic RenderPipeline.Builderbuilder(RenderPipeline.Snippet... pSnippets) floatfloatintbooleanisCull()booleanbooleanbooleanNeo: Create aRenderPipeline.Builderfrom thisRenderPipelineto adjust its configuration and build a new, modifiedRenderPipelinefrom ittoString()static voidboolean
-
Field Details
-
location
-
vertexShader
-
fragmentShader
-
shaderDefines
-
samplers
-
uniforms
-
depthTestFunction
-
polygonMode
-
cull
private final boolean cull -
colorLogic
-
blendFunction
-
writeColor
private final boolean writeColor -
writeAlpha
private final boolean writeAlpha -
writeDepth
private final boolean writeDepth -
vertexFormat
-
vertexFormatMode
-
depthBiasScaleFactor
private final float depthBiasScaleFactor -
depthBiasConstant
private final float depthBiasConstant -
sortKey
private final int sortKey -
sortKeySeed
private static int sortKeySeed -
stencilTest
-
-
Constructor Details
-
RenderPipeline
@Deprecated protected RenderPipeline(ResourceLocation pLocation, ResourceLocation pVertexShader, ResourceLocation pFragmentShader, ShaderDefines pShaderDefines, List<String> pSamplers, List<RenderPipeline.UniformDescription> pUniforms, Optional<BlendFunction> pBlendFunction, DepthTestFunction pDepthTestFunction, PolygonMode pPolygonMode, boolean pCull, boolean pWriteColor, boolean pWriteAlpha, boolean pWriteDepth, LogicOp pColorLogic, VertexFormat pVertexFormat, VertexFormat.Mode pVertexFormatMode, float pDepthBiasScaleFactor, float pDepthBiasConstant, int pSortKey) -
RenderPipeline
protected RenderPipeline(ResourceLocation pLocation, ResourceLocation pVertexShader, ResourceLocation pFragmentShader, ShaderDefines pShaderDefines, List<String> pSamplers, List<RenderPipeline.UniformDescription> pUniforms, Optional<BlendFunction> pBlendFunction, DepthTestFunction pDepthTestFunction, PolygonMode pPolygonMode, boolean pCull, boolean pWriteColor, boolean pWriteAlpha, boolean pWriteDepth, LogicOp pColorLogic, VertexFormat pVertexFormat, VertexFormat.Mode pVertexFormatMode, float pDepthBiasScaleFactor, float pDepthBiasConstant, int pSortKey, Optional<StencilTest> stencilTest)
-
-
Method Details
-
getSortKey
public int getSortKey() -
updateSortKeySeed
public static void updateSortKeySeed() -
toString
-
getDepthTestFunction
-
getPolygonMode
-
isCull
public boolean isCull() -
getColorLogic
-
getBlendFunction
-
isWriteColor
public boolean isWriteColor() -
isWriteAlpha
public boolean isWriteAlpha() -
isWriteDepth
public boolean isWriteDepth() -
getDepthBiasScaleFactor
public float getDepthBiasScaleFactor() -
getDepthBiasConstant
public float getDepthBiasConstant() -
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(ResourceLocation, ResourceLocation, ResourceLocation, ShaderDefines, List, List, Optional, DepthTestFunction, PolygonMode, boolean, boolean, boolean, boolean, LogicOp, VertexFormat, VertexFormat.Mode, float, float, int, Optional)instead