Package com.mojang.blaze3d.pipeline
Record Class RenderPipeline.Snippet
java.lang.Object
java.lang.Record
com.mojang.blaze3d.pipeline.RenderPipeline.Snippet
- Enclosing class:
RenderPipeline
@Environment(CLIENT)
public static record RenderPipeline.Snippet(Optional<Identifier> vertexShader, Optional<Identifier> fragmentShader, Optional<Defines> shaderDefines, Optional<List<String>> samplers, Optional<List<RenderPipeline.UniformDescription>> uniforms, Optional<BlendFunction> blendFunction, Optional<DepthTestFunction> depthTestFunction, Optional<PolygonMode> polygonMode, Optional<Boolean> cull, Optional<Boolean> writeColor, Optional<Boolean> writeAlpha, Optional<Boolean> writeDepth, Optional<LogicOp> colorLogic, Optional<VertexFormat> vertexFormat, Optional<VertexFormat.DrawMode> vertexFormatMode)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Optional<BlendFunction> The field for theblendFunctionrecord component.The field for thecolorLogicrecord component.The field for thecullrecord component.private final Optional<DepthTestFunction> The field for thedepthTestFunctionrecord component.private final Optional<Identifier> The field for thefragmentShaderrecord component.private final Optional<PolygonMode> The field for thepolygonModerecord component.The field for thesamplersrecord component.The field for theshaderDefinesrecord component.private final Optional<List<RenderPipeline.UniformDescription>> The field for theuniformsrecord component.private final Optional<VertexFormat> The field for thevertexFormatrecord component.private final Optional<VertexFormat.DrawMode> The field for thevertexFormatModerecord component.private final Optional<Identifier> The field for thevertexShaderrecord component.The field for thewriteAlpharecord component.The field for thewriteColorrecord component.The field for thewriteDepthrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSnippet(Optional<Identifier> optional, Optional<Identifier> optional2, Optional<Defines> optional3, Optional<List<String>> optional4, Optional<List<RenderPipeline.UniformDescription>> optional5, Optional<BlendFunction> optional6, Optional<DepthTestFunction> optional7, Optional<PolygonMode> optional8, Optional<Boolean> optional9, Optional<Boolean> optional10, Optional<Boolean> optional11, Optional<Boolean> optional12, Optional<LogicOp> optional13, Optional<VertexFormat> optional14, Optional<VertexFormat.DrawMode> optional15) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblendFunctionrecord component.Returns the value of thecolorLogicrecord component.cull()Returns the value of thecullrecord component.Returns the value of thedepthTestFunctionrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefragmentShaderrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thepolygonModerecord component.samplers()Returns the value of thesamplersrecord component.Returns the value of theshaderDefinesrecord component.final StringtoString()Returns a string representation of this record class.uniforms()Returns the value of theuniformsrecord component.Returns the value of thevertexFormatrecord component.Returns the value of thevertexFormatModerecord component.Returns the value of thevertexShaderrecord component.Returns the value of thewriteAlpharecord component.Returns the value of thewriteColorrecord component.Returns the value of thewriteDepthrecord component.
-
Field Details
-
vertexShader
The field for thevertexShaderrecord component. -
fragmentShader
The field for thefragmentShaderrecord component. -
shaderDefines
The field for theshaderDefinesrecord component. -
samplers
The field for thesamplersrecord component. -
uniforms
The field for theuniformsrecord component. -
blendFunction
The field for theblendFunctionrecord component. -
depthTestFunction
The field for thedepthTestFunctionrecord component. -
polygonMode
The field for thepolygonModerecord component. -
cull
The field for thecullrecord component. -
writeColor
The field for thewriteColorrecord component. -
writeAlpha
The field for thewriteAlpharecord component. -
writeDepth
The field for thewriteDepthrecord component. -
colorLogic
The field for thecolorLogicrecord component. -
vertexFormat
The field for thevertexFormatrecord component. -
vertexFormatMode
The field for thevertexFormatModerecord component.
-
-
Constructor Details
-
Snippet
public Snippet(Optional<Identifier> optional, Optional<Identifier> optional2, Optional<Defines> optional3, Optional<List<String>> optional4, Optional<List<RenderPipeline.UniformDescription>> optional5, Optional<BlendFunction> optional6, Optional<DepthTestFunction> optional7, Optional<PolygonMode> optional8, Optional<Boolean> optional9, Optional<Boolean> optional10, Optional<Boolean> optional11, Optional<Boolean> optional12, Optional<LogicOp> optional13, Optional<VertexFormat> optional14, Optional<VertexFormat.DrawMode> optional15)
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
vertexShader
Returns the value of thevertexShaderrecord component.- Returns:
- the value of the
vertexShaderrecord component
-
fragmentShader
Returns the value of thefragmentShaderrecord component.- Returns:
- the value of the
fragmentShaderrecord component
-
shaderDefines
Returns the value of theshaderDefinesrecord component.- Returns:
- the value of the
shaderDefinesrecord component
-
samplers
Returns the value of thesamplersrecord component.- Returns:
- the value of the
samplersrecord component
-
uniforms
Returns the value of theuniformsrecord component.- Returns:
- the value of the
uniformsrecord component
-
blendFunction
Returns the value of theblendFunctionrecord component.- Returns:
- the value of the
blendFunctionrecord component
-
depthTestFunction
Returns the value of thedepthTestFunctionrecord component.- Returns:
- the value of the
depthTestFunctionrecord component
-
polygonMode
Returns the value of thepolygonModerecord component.- Returns:
- the value of the
polygonModerecord component
-
cull
Returns the value of thecullrecord component.- Returns:
- the value of the
cullrecord component
-
writeColor
Returns the value of thewriteColorrecord component.- Returns:
- the value of the
writeColorrecord component
-
writeAlpha
Returns the value of thewriteAlpharecord component.- Returns:
- the value of the
writeAlpharecord component
-
writeDepth
Returns the value of thewriteDepthrecord component.- Returns:
- the value of the
writeDepthrecord component
-
colorLogic
Returns the value of thecolorLogicrecord component.- Returns:
- the value of the
colorLogicrecord component
-
vertexFormat
Returns the value of thevertexFormatrecord component.- Returns:
- the value of the
vertexFormatrecord component
-
vertexFormatMode
Returns the value of thevertexFormatModerecord component.- Returns:
- the value of the
vertexFormatModerecord component
-