Record Class RenderPipeline.Snippet
java.lang.Object
java.lang.Record
com.mojang.renderpearl.api.pipeline.RenderPipeline.Snippet
- Enclosing class:
RenderPipeline
public static record RenderPipeline.Snippet(Map<ShaderType, Identifier> shaders, 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, int pushConstantSize)
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<PolygonMode> The field for thepolygonModerecord component.private final intThe field for thepushConstantSizerecord component.private final Optional<ShaderDefines> The field for theshaderDefinesrecord component.private final Map<ShaderType, Identifier> The field for theshadersrecord component.private final Optional<PrimitiveTopology> The field for thevertexFormatModerecord component.private final @Nullable VertexFormat[]The field for thevertexFormatPerBufferrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSnippet(Map<ShaderType, Identifier> shaders, 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, int pushConstantSize) 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.final inthashCode()Returns a hash code value for this object.Returns the value of thepolygonModerecord component.intReturns the value of thepushConstantSizerecord component.Returns the value of theshaderDefinesrecord component.shaders()Returns the value of theshadersrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevertexFormatModerecord component.Returns the value of thevertexFormatPerBufferrecord component.
-
Field Details
-
shaders
The field for theshadersrecord 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. -
pushConstantSize
private final int pushConstantSizeThe field for thepushConstantSizerecord component.
-
-
Constructor Details
-
Snippet
public Snippet(Map<ShaderType, Identifier> shaders, 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, int pushConstantSize) Creates an instance of aSnippetrecord class.- Parameters:
shaders- the value for theshadersrecord 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 componentpushConstantSize- the value for thepushConstantSizerecord 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. -
shaders
Returns the value of theshadersrecord component.- Returns:
- the value of the
shadersrecord 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
-
pushConstantSize
public int pushConstantSize()Returns the value of thepushConstantSizerecord component.- Returns:
- the value of the
pushConstantSizerecord component
-