Package com.mojang.blaze3d.pipeline
Record Class RenderPipeline.Snippet
java.lang.Object
java.lang.Record
com.mojang.blaze3d.pipeline.RenderPipeline.Snippet
- Enclosing class:
RenderPipeline
public static record RenderPipeline.Snippet(Optional<ResourceLocation> vertexShader, Optional<ResourceLocation> fragmentShader, Optional<ShaderDefines> 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.Mode> vertexFormatMode)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Optional
<BlendFunction> The field for theblendFunction
record component.The field for thecolorLogic
record component.The field for thecull
record component.private final Optional
<DepthTestFunction> The field for thedepthTestFunction
record component.private final Optional
<ResourceLocation> The field for thefragmentShader
record component.private final Optional
<PolygonMode> The field for thepolygonMode
record component.The field for thesamplers
record component.private final Optional
<ShaderDefines> The field for theshaderDefines
record component.private final Optional
<List<RenderPipeline.UniformDescription>> The field for theuniforms
record component.private final Optional
<VertexFormat> The field for thevertexFormat
record component.private final Optional
<VertexFormat.Mode> The field for thevertexFormatMode
record component.private final Optional
<ResourceLocation> The field for thevertexShader
record component.The field for thewriteAlpha
record component.The field for thewriteColor
record component.The field for thewriteDepth
record component. -
Constructor Summary
ConstructorsConstructorDescriptionSnippet
(Optional<ResourceLocation> vertexShader, Optional<ResourceLocation> fragmentShader, Optional<ShaderDefines> 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.Mode> vertexFormatMode) Creates an instance of aSnippet
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblendFunction
record component.Returns the value of thecolorLogic
record component.cull()
Returns the value of thecull
record component.Returns the value of thedepthTestFunction
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefragmentShader
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of thepolygonMode
record component.samplers()
Returns the value of thesamplers
record component.Returns the value of theshaderDefines
record component.final String
toString()
Returns a string representation of this record class.uniforms()
Returns the value of theuniforms
record component.Returns the value of thevertexFormat
record component.Returns the value of thevertexFormatMode
record component.Returns the value of thevertexShader
record component.Returns the value of thewriteAlpha
record component.Returns the value of thewriteColor
record component.Returns the value of thewriteDepth
record component.
-
Field Details
-
vertexShader
The field for thevertexShader
record component. -
fragmentShader
The field for thefragmentShader
record component. -
shaderDefines
The field for theshaderDefines
record component. -
samplers
The field for thesamplers
record component. -
uniforms
The field for theuniforms
record component. -
blendFunction
The field for theblendFunction
record component. -
depthTestFunction
The field for thedepthTestFunction
record component. -
polygonMode
The field for thepolygonMode
record component. -
cull
The field for thecull
record component. -
writeColor
The field for thewriteColor
record component. -
writeAlpha
The field for thewriteAlpha
record component. -
writeDepth
The field for thewriteDepth
record component. -
colorLogic
The field for thecolorLogic
record component. -
vertexFormat
The field for thevertexFormat
record component. -
vertexFormatMode
The field for thevertexFormatMode
record component.
-
-
Constructor Details
-
Snippet
public Snippet(Optional<ResourceLocation> vertexShader, Optional<ResourceLocation> fragmentShader, Optional<ShaderDefines> 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.Mode> vertexFormatMode) Creates an instance of aSnippet
record class.- Parameters:
vertexShader
- the value for thevertexShader
record componentfragmentShader
- the value for thefragmentShader
record componentshaderDefines
- the value for theshaderDefines
record componentsamplers
- the value for thesamplers
record componentuniforms
- the value for theuniforms
record componentblendFunction
- the value for theblendFunction
record componentdepthTestFunction
- the value for thedepthTestFunction
record componentpolygonMode
- the value for thepolygonMode
record componentcull
- the value for thecull
record componentwriteColor
- the value for thewriteColor
record componentwriteAlpha
- the value for thewriteAlpha
record componentwriteDepth
- the value for thewriteDepth
record componentcolorLogic
- the value for thecolorLogic
record componentvertexFormat
- the value for thevertexFormat
record componentvertexFormatMode
- the value for thevertexFormatMode
record component
-
-
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 thevertexShader
record component.- Returns:
- the value of the
vertexShader
record component
-
fragmentShader
Returns the value of thefragmentShader
record component.- Returns:
- the value of the
fragmentShader
record component
-
shaderDefines
Returns the value of theshaderDefines
record component.- Returns:
- the value of the
shaderDefines
record component
-
samplers
Returns the value of thesamplers
record component.- Returns:
- the value of the
samplers
record component
-
uniforms
Returns the value of theuniforms
record component.- Returns:
- the value of the
uniforms
record component
-
blendFunction
Returns the value of theblendFunction
record component.- Returns:
- the value of the
blendFunction
record component
-
depthTestFunction
Returns the value of thedepthTestFunction
record component.- Returns:
- the value of the
depthTestFunction
record component
-
polygonMode
Returns the value of thepolygonMode
record component.- Returns:
- the value of the
polygonMode
record component
-
cull
Returns the value of thecull
record component.- Returns:
- the value of the
cull
record component
-
writeColor
Returns the value of thewriteColor
record component.- Returns:
- the value of the
writeColor
record component
-
writeAlpha
Returns the value of thewriteAlpha
record component.- Returns:
- the value of the
writeAlpha
record component
-
writeDepth
Returns the value of thewriteDepth
record component.- Returns:
- the value of the
writeDepth
record component
-
colorLogic
Returns the value of thecolorLogic
record component.- Returns:
- the value of the
colorLogic
record component
-
vertexFormat
Returns the value of thevertexFormat
record component.- Returns:
- the value of the
vertexFormat
record component
-
vertexFormatMode
Returns the value of thevertexFormatMode
record component.- Returns:
- the value of the
vertexFormatMode
record component
-