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<BindGroupLayout>> bindGroupLayouts, @Nullable ColorTargetState[] colorTargetStates, int activeColorTargetStateCount, Optional<DepthStencilState> depthStencilState, Optional<PolygonMode> polygonMode, Optional<Boolean> cull, @Nullable VertexFormat[] vertexFormatPerBuffer, Optional<PrimitiveTopology> vertexFormatMode, Optional<StencilTest> stencilTest)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for theactiveColorTargetStateCountrecord component.private final Optional<List<BindGroupLayout>> The field for thebindGroupLayoutsrecord component.private final @Nullable ColorTargetState[]The field for thecolorTargetStatesrecord 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.private final Optional<ShaderDefines> The field for theshaderDefinesrecord component.private final Optional<StencilTest> The field for thestencilTestrecord component.private final Optional<PrimitiveTopology> The field for thevertexFormatModerecord component.private final @Nullable VertexFormat[]The field for thevertexFormatPerBufferrecord component.private final Optional<Identifier> The field for thevertexShaderrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSnippet(Optional<Identifier> vertexShader, Optional<Identifier> fragmentShader, Optional<ShaderDefines> shaderDefines, Optional<List<BindGroupLayout>> bindGroupLayouts, @Nullable ColorTargetState[] colorTargetStates, int activeColorTargetStateCount, Optional<DepthStencilState> depthStencilState, Optional<PolygonMode> polygonMode, Optional<Boolean> cull, @Nullable VertexFormat[] vertexFormatPerBuffer, Optional<PrimitiveTopology> vertexFormatMode) Deprecated.Snippet(Optional<Identifier> vertexShader, Optional<Identifier> fragmentShader, Optional<ShaderDefines> shaderDefines, Optional<List<BindGroupLayout>> bindGroupLayouts, @Nullable ColorTargetState[] colorTargetStates, int activeColorTargetStateCount, Optional<DepthStencilState> depthStencilState, Optional<PolygonMode> polygonMode, Optional<Boolean> cull, @Nullable VertexFormat[] vertexFormatPerBuffer, Optional<PrimitiveTopology> vertexFormatMode, Optional<StencilTest> stencilTest) Creates an instance of aSnippetrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theactiveColorTargetStateCountrecord component.Returns the value of thebindGroupLayoutsrecord component.Returns the value of thecolorTargetStatesrecord 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.Returns the value of theshaderDefinesrecord component.Returns the value of thestencilTestrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevertexFormatModerecord component.Returns the value of thevertexFormatPerBufferrecord 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. -
bindGroupLayouts
The field for thebindGroupLayoutsrecord component. -
colorTargetStates
The field for thecolorTargetStatesrecord component. -
activeColorTargetStateCount
private final int activeColorTargetStateCountThe field for theactiveColorTargetStateCountrecord component. -
depthStencilState
The field for thedepthStencilStaterecord component. -
polygonMode
The field for thepolygonModerecord component. -
cull
-
vertexFormatPerBuffer
The field for thevertexFormatPerBufferrecord 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<BindGroupLayout>> bindGroupLayouts, @Nullable ColorTargetState[] colorTargetStates, int activeColorTargetStateCount, Optional<DepthStencilState> depthStencilState, Optional<PolygonMode> polygonMode, Optional<Boolean> cull, @Nullable VertexFormat[] vertexFormatPerBuffer, Optional<PrimitiveTopology> vertexFormatMode) -
Snippet
public Snippet(Optional<Identifier> vertexShader, Optional<Identifier> fragmentShader, Optional<ShaderDefines> shaderDefines, Optional<List<BindGroupLayout>> bindGroupLayouts, @Nullable ColorTargetState[] colorTargetStates, int activeColorTargetStateCount, Optional<DepthStencilState> depthStencilState, Optional<PolygonMode> polygonMode, Optional<Boolean> cull, @Nullable VertexFormat[] vertexFormatPerBuffer, Optional<PrimitiveTopology> 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 componentbindGroupLayouts- the value for thebindGroupLayoutsrecord componentcolorTargetStates- the value for thecolorTargetStatesrecord componentactiveColorTargetStateCount- the value for theactiveColorTargetStateCountrecord componentdepthStencilState- the value for thedepthStencilStaterecord componentpolygonMode- the value for thepolygonModerecord componentcull- the value for thecullrecord componentvertexFormatPerBuffer- the value for thevertexFormatPerBufferrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
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
-
bindGroupLayouts
Returns the value of thebindGroupLayoutsrecord component.- Returns:
- the value of the
bindGroupLayoutsrecord component
-
colorTargetStates
Returns the value of thecolorTargetStatesrecord component.- Returns:
- the value of the
colorTargetStatesrecord component
-
activeColorTargetStateCount
public int activeColorTargetStateCount()Returns the value of theactiveColorTargetStateCountrecord component.- Returns:
- the value of the
activeColorTargetStateCountrecord 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
-
vertexFormatPerBuffer
Returns the value of thevertexFormatPerBufferrecord component.- Returns:
- the value of the
vertexFormatPerBufferrecord 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, ColorTargetState[], int, Optional, Optional, Optional, VertexFormat[], Optional, Optional)instead