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<Identifier> vertexShader, Optional<Identifier> fragmentShader, Optional<ShaderDefines> shaderDefines, Optional<List<String>> samplers, Optional<List<RenderPipeline.UniformDescription>> uniforms, Optional<ColorTargetState> colorTargetState, Optional<DepthStencilState> depthStencilState, Optional<PolygonMode> polygonMode, Optional<Boolean> cull, Optional<VertexFormat> vertexFormat, Optional<VertexFormat.Mode> vertexFormatMode, Optional<StencilTest> stencilTest)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Optional<ColorTargetState> The field for thecolorTargetStaterecord component.The field for thecullrecord component.private final Optional<DepthStencilState> The field for thedepthStencilStaterecord component.private final Optional<Identifier> The field for thefragmentShaderrecord component.private final Optional<PolygonMode> The field for thepolygonModerecord component.The field for thesamplersrecord component.private final Optional<ShaderDefines> The field for theshaderDefinesrecord component.private final Optional<StencilTest> The field for thestencilTestrecord 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.Mode> The field for thevertexFormatModerecord component.private final Optional<Identifier> The field for thevertexShaderrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSnippet(Optional<Identifier> vertexShader, Optional<Identifier> fragmentShader, Optional<ShaderDefines> shaderDefines, Optional<List<String>> samplers, Optional<List<RenderPipeline.UniformDescription>> uniforms, Optional<ColorTargetState> colorTargetState, Optional<DepthStencilState> depthStencilState, Optional<PolygonMode> polygonMode, Optional<Boolean> cull, Optional<VertexFormat> vertexFormat, Optional<VertexFormat.Mode> vertexFormatMode) Deprecated.Snippet(Optional<Identifier> vertexShader, Optional<Identifier> fragmentShader, Optional<ShaderDefines> shaderDefines, Optional<List<String>> samplers, Optional<List<RenderPipeline.UniformDescription>> uniforms, Optional<ColorTargetState> colorTargetState, Optional<DepthStencilState> depthStencilState, Optional<PolygonMode> polygonMode, Optional<Boolean> cull, Optional<VertexFormat> vertexFormat, Optional<VertexFormat.Mode> vertexFormatMode, Optional<StencilTest> stencilTest) Creates an instance of aSnippetrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecolorTargetStaterecord component.cull()Returns the value of thecullrecord component.Returns the value of thedepthStencilStaterecord 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.Returns the value of thestencilTestrecord 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.
-
Field Details
-
vertexShader
The field for thevertexShaderrecord component. -
fragmentShader
The field for thefragmentShaderrecord component. -
shaderDefines
The field for theshaderDefinesrecord component. -
samplers
-
uniforms
The field for theuniformsrecord component. -
colorTargetState
The field for thecolorTargetStaterecord component. -
depthStencilState
The field for thedepthStencilStaterecord component. -
polygonMode
The field for thepolygonModerecord component. -
cull
-
vertexFormat
The field for thevertexFormatrecord component. -
vertexFormatMode
The field for thevertexFormatModerecord component. -
stencilTest
The field for thestencilTestrecord component.
-
-
Constructor Details
-
Snippet
@Deprecated public Snippet(Optional<Identifier> vertexShader, Optional<Identifier> fragmentShader, Optional<ShaderDefines> shaderDefines, Optional<List<String>> samplers, Optional<List<RenderPipeline.UniformDescription>> uniforms, Optional<ColorTargetState> colorTargetState, Optional<DepthStencilState> depthStencilState, Optional<PolygonMode> polygonMode, Optional<Boolean> cull, Optional<VertexFormat> vertexFormat, Optional<VertexFormat.Mode> vertexFormatMode) -
Snippet
public Snippet(Optional<Identifier> vertexShader, Optional<Identifier> fragmentShader, Optional<ShaderDefines> shaderDefines, Optional<List<String>> samplers, Optional<List<RenderPipeline.UniformDescription>> uniforms, Optional<ColorTargetState> colorTargetState, Optional<DepthStencilState> depthStencilState, Optional<PolygonMode> polygonMode, Optional<Boolean> cull, Optional<VertexFormat> vertexFormat, Optional<VertexFormat.Mode> vertexFormatMode, Optional<StencilTest> stencilTest) Creates an instance of aSnippetrecord class.- Parameters:
vertexShader- the value for thevertexShaderrecord componentfragmentShader- the value for thefragmentShaderrecord componentshaderDefines- the value for theshaderDefinesrecord componentsamplers- the value for thesamplersrecord componentuniforms- the value for theuniformsrecord componentcolorTargetState- the value for thecolorTargetStaterecord componentdepthStencilState- the value for thedepthStencilStaterecord componentpolygonMode- the value for thepolygonModerecord componentcull- the value for thecullrecord componentvertexFormat- the value for thevertexFormatrecord componentvertexFormatMode- the value for thevertexFormatModerecord componentstencilTest- the value for thestencilTestrecord component
-
-
Method Details
-
toString
-
hashCode
-
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
-
uniforms
Returns the value of theuniformsrecord component.- Returns:
- the value of the
uniformsrecord component
-
colorTargetState
Returns the value of thecolorTargetStaterecord component.- Returns:
- the value of the
colorTargetStaterecord component
-
depthStencilState
Returns the value of thedepthStencilStaterecord component.- Returns:
- the value of the
depthStencilStaterecord component
-
polygonMode
Returns the value of thepolygonModerecord component.- Returns:
- the value of the
polygonModerecord component
-
cull
-
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
-
stencilTest
Returns the value of thestencilTestrecord component.- Returns:
- the value of the
stencilTestrecord component
-
Snippet(Optional, Optional, Optional, Optional, Optional, Optional, Optional, Optional, Optional, Optional, Optional, Optional)instead