Class RenderPipeline.Builder
java.lang.Object
com.mojang.renderpearl.api.pipeline.RenderPipeline.Builder
- Enclosing class:
RenderPipeline
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate Optional<Set<BindGroupLayout>> private final @Nullable ColorTargetState[]private Optional<ShaderDefines.Builder> private Optional<DepthStencilState> private Optional<Identifier> private static intprivate Optional<PolygonMode> private Optional<PrimitiveTopology> private intprivate final Map<ShaderType, Identifier> private final @Nullable VertexFormat[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()withBindGroupLayout(BindGroupLayout bindGroupLayout) withColorTargetState(int index, ColorTargetState colorTargetState) withColorTargetState(ColorTargetState colorTargetState) withColorTargetStates(int startIindex, int endIndex, Supplier<ColorTargetState> colorTargetState) withCull(boolean cull) withDepthStencilState(DepthStencilState depthStencilState) withDepthStencilState(Optional<DepthStencilState> depthStencilState) withFragmentShader(String fragmentShader) withFragmentShader(Identifier fragmentShader) withLocation(String location) withLocation(Identifier location) withPolygonMode(PolygonMode polygonMode) withPrimitiveTopology(PrimitiveTopology primitiveTopology) withPushConstantSize(int pushConstantSize) withShaderDefine(String key) withShaderDefine(String key, float value) withShaderDefine(String key, int value) withSnippet(RenderPipeline.Snippet snippet) withUnusedColorTargetState(int index) withVertexBinding(int bindingIndex, VertexFormat vertexFormat) withVertexShader(String vertexShader) withVertexShader(Identifier vertexShader)
-
Field Details
-
nextPipelineSortKey
private static int nextPipelineSortKey -
location
-
shaders
-
definesBuilder
-
bindGroupLayouts
-
depthStencilState
-
polygonMode
-
cull
-
colorTargetStates
-
activeColorTargetStateCount
private int activeColorTargetStateCount -
vertexFormatPerBuffer
-
primitiveTopology
-
pushConstantSize
private int pushConstantSize
-
-
Constructor Details
-
Builder
private Builder()
-
-
Method Details
-
withLocation
-
withLocation
-
withFragmentShader
-
withFragmentShader
-
withVertexShader
-
withVertexShader
-
withShaderDefine
-
withShaderDefine
-
withShaderDefine
-
withBindGroupLayout
-
withPolygonMode
-
withCull
-
withColorTargetState
-
withColorTargetStates
public RenderPipeline.Builder withColorTargetStates(int startIindex, int endIndex, Supplier<ColorTargetState> colorTargetState) -
withUnusedColorTargetState
-
withColorTargetState
-
withDepthStencilState
-
withDepthStencilState
-
withVertexBinding
-
withPrimitiveTopology
-
withPushConstantSize
-
withSnippet
-
buildSnippet
-
build
-