Class RenderPipeline
java.lang.Object
com.mojang.renderpearl.api.pipeline.RenderPipeline
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<BindGroupLayout> private final List<@Nullable ColorTargetState> private final booleanprivate final @Nullable DepthStencilStateprivate final Identifierprivate final PolygonModeprivate final PrimitiveTopologyprivate final intprivate final ShaderDefinesprivate final Map<ShaderType, Identifier> private final intprivate static intprivate final List<@Nullable VertexFormat> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRenderPipeline(Identifier location, Map<ShaderType, Identifier> shaders, ShaderDefines shaderDefines, Collection<BindGroupLayout> bindGroupLayouts, @Nullable ColorTargetState[] colorTargetStates, @Nullable DepthStencilState depthStencilState, PolygonMode polygonMode, boolean cull, @Nullable VertexFormat[] vertexFormatPerBuffer, PrimitiveTopology primitiveTopology, int pushConstantSize, int sortKey) -
Method Summary
Modifier and TypeMethodDescriptionstatic RenderPipeline.Builderbuilder(RenderPipeline.Snippet... snippets) intgetVertexFormatBinding(int bindingIndex) booleanisCull()intNeo: Create aRenderPipeline.Builderfrom thisRenderPipelineto adjust its configuration and build a new, modifiedRenderPipelinefrom ittoString()static voidboolean
-
Field Details
-
location
-
shaders
-
shaderDefines
-
bindGroupLayouts
-
depthStencilState
-
polygonMode
-
cull
private final boolean cull -
colorTargetStates
-
vertexFormatPerBuffer
-
primitiveTopology
-
pushConstantSize
private final int pushConstantSize -
sortKey
private final int sortKey -
sortKeySeed
private static int sortKeySeed
-
-
Constructor Details
-
RenderPipeline
protected RenderPipeline(Identifier location, Map<ShaderType, Identifier> shaders, ShaderDefines shaderDefines, Collection<BindGroupLayout> bindGroupLayouts, @Nullable ColorTargetState[] colorTargetStates, @Nullable DepthStencilState depthStencilState, PolygonMode polygonMode, boolean cull, @Nullable VertexFormat[] vertexFormatPerBuffer, PrimitiveTopology primitiveTopology, int pushConstantSize, int sortKey)
-
-
Method Details
-
getSortKey
public int getSortKey() -
updateSortKeySeed
public static void updateSortKeySeed() -
toString
-
getPolygonMode
-
isCull
public boolean isCull() -
getColorTargetStates
-
getDepthStencilState
-
getLocation
-
getVertexFormatBindings
-
getVertexFormatBinding
-
getPrimitiveTopology
-
getShaders
-
getShaderDefines
-
getBindGroupLayouts
-
wantsDepthTexture
public boolean wantsDepthTexture() -
pushConstantSize
public int pushConstantSize() -
toBuilder
Neo: Create aRenderPipeline.Builderfrom thisRenderPipelineto adjust its configuration and build a new, modifiedRenderPipelinefrom it -
builder
-