Record Class BackendRenderPipeline.CreateInfo
java.lang.Object
java.lang.Record
com.mojang.renderpearl.backend.api.BackendRenderPipeline.CreateInfo
- Enclosing interface:
BackendRenderPipeline
public static record BackendRenderPipeline.CreateInfo(String name, List<BackendRenderPipeline.CreateInfo.Shader> shaders, List<BackendRenderPipeline.CreateInfo.VertexBuffer> vertexBuffers, List<BackendRenderPipeline.CreateInfo.AttribBinding> attribBindings, List<BindGroupLayout.UniformDescription> uniforms, int pushConstantsSize, @Nullable DepthStencilState depthStencilState, PolygonMode polygonMode, boolean cull, List<@Nullable ColorTargetState> colorTargetStates, PrimitiveTopology primitiveTopology)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<BackendRenderPipeline.CreateInfo.AttribBinding> The field for theattribBindingsrecord component.private final List<@Nullable ColorTargetState> The field for thecolorTargetStatesrecord component.private final booleanThe field for thecullrecord component.private final @Nullable DepthStencilStateThe field for thedepthStencilStaterecord component.private final StringThe field for thenamerecord component.private final PolygonModeThe field for thepolygonModerecord component.private final PrimitiveTopologyThe field for theprimitiveTopologyrecord component.private final intThe field for thepushConstantsSizerecord component.private final List<BackendRenderPipeline.CreateInfo.Shader> The field for theshadersrecord component.private final List<BindGroupLayout.UniformDescription> The field for theuniformsrecord component.private final List<BackendRenderPipeline.CreateInfo.VertexBuffer> The field for thevertexBuffersrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionCreateInfo(String name, List<BackendRenderPipeline.CreateInfo.Shader> shaders, List<BackendRenderPipeline.CreateInfo.VertexBuffer> vertexBuffers, List<BackendRenderPipeline.CreateInfo.AttribBinding> attribBindings, List<BindGroupLayout.UniformDescription> uniforms, int pushConstantsSize, @Nullable DepthStencilState depthStencilState, PolygonMode polygonMode, boolean cull, List<@Nullable ColorTargetState> colorTargetStates, PrimitiveTopology primitiveTopology) Creates an instance of aCreateInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattribBindingsrecord component.Returns the value of thecolorTargetStatesrecord component.booleancull()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.name()Returns the value of thenamerecord component.Returns the value of thepolygonModerecord component.Returns the value of theprimitiveTopologyrecord component.intReturns the value of thepushConstantsSizerecord component.shaders()Returns the value of theshadersrecord component.final StringtoString()Returns a string representation of this record class.uniforms()Returns the value of theuniformsrecord component.Returns the value of thevertexBuffersrecord component.
-
Field Details
-
name
The field for thenamerecord component. -
shaders
The field for theshadersrecord component. -
vertexBuffers
The field for thevertexBuffersrecord component. -
attribBindings
The field for theattribBindingsrecord component. -
uniforms
The field for theuniformsrecord component. -
pushConstantsSize
private final int pushConstantsSizeThe field for thepushConstantsSizerecord component. -
depthStencilState
The field for thedepthStencilStaterecord component. -
polygonMode
The field for thepolygonModerecord component. -
cull
private final boolean cullThe field for thecullrecord component. -
colorTargetStates
The field for thecolorTargetStatesrecord component. -
primitiveTopology
The field for theprimitiveTopologyrecord component.
-
-
Constructor Details
-
CreateInfo
public CreateInfo(String name, List<BackendRenderPipeline.CreateInfo.Shader> shaders, List<BackendRenderPipeline.CreateInfo.VertexBuffer> vertexBuffers, List<BackendRenderPipeline.CreateInfo.AttribBinding> attribBindings, List<BindGroupLayout.UniformDescription> uniforms, int pushConstantsSize, @Nullable DepthStencilState depthStencilState, PolygonMode polygonMode, boolean cull, List<@Nullable ColorTargetState> colorTargetStates, PrimitiveTopology primitiveTopology) Creates an instance of aCreateInforecord class.- Parameters:
name- the value for thenamerecord componentshaders- the value for theshadersrecord componentvertexBuffers- the value for thevertexBuffersrecord componentattribBindings- the value for theattribBindingsrecord componentuniforms- the value for theuniformsrecord componentpushConstantsSize- the value for thepushConstantsSizerecord componentdepthStencilState- the value for thedepthStencilStaterecord componentpolygonMode- the value for thepolygonModerecord componentcull- the value for thecullrecord componentcolorTargetStates- the value for thecolorTargetStatesrecord componentprimitiveTopology- the value for theprimitiveTopologyrecord 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. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
shaders
Returns the value of theshadersrecord component.- Returns:
- the value of the
shadersrecord component
-
vertexBuffers
Returns the value of thevertexBuffersrecord component.- Returns:
- the value of the
vertexBuffersrecord component
-
attribBindings
Returns the value of theattribBindingsrecord component.- Returns:
- the value of the
attribBindingsrecord component
-
uniforms
Returns the value of theuniformsrecord component.- Returns:
- the value of the
uniformsrecord component
-
pushConstantsSize
public int pushConstantsSize()Returns the value of thepushConstantsSizerecord component.- Returns:
- the value of the
pushConstantsSizerecord 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
public boolean cull()Returns the value of thecullrecord component.- Returns:
- the value of the
cullrecord component
-
colorTargetStates
Returns the value of thecolorTargetStatesrecord component.- Returns:
- the value of the
colorTargetStatesrecord component
-
primitiveTopology
Returns the value of theprimitiveTopologyrecord component.- Returns:
- the value of the
primitiveTopologyrecord component
-