Record Class FrontendRenderPipeline
java.lang.Object
java.lang.Record
com.mojang.renderpearl.frontend.FrontendRenderPipeline
- All Implemented Interfaces:
CompiledRenderPipeline, UncheckedAutoCloseable, AutoCloseable
public record FrontendRenderPipeline(String name, BackendRenderPipeline backendRenderPipeline, List<@Nullable VertexFormat> vertexFormats, it.unimi.dsi.fastutil.objects.Object2IntMap<String> uniformIndices, List<BindGroupLayout.UniformDescription> uniforms, List<@Nullable ColorTargetState> colorTargetStates, boolean wantsDepthTexture, int pushConstantSize)
extends Record
implements CompiledRenderPipeline
-
Nested Class Summary
Nested classes/interfaces inherited from interface CompiledRenderPipeline
CompiledRenderPipeline.Pending -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BackendRenderPipelineThe field for thebackendRenderPipelinerecord component.private final List<@Nullable ColorTargetState> The field for thecolorTargetStatesrecord component.private final StringThe field for thenamerecord component.private final intThe field for thepushConstantSizerecord component.private final it.unimi.dsi.fastutil.objects.Object2IntMap<String> The field for theuniformIndicesrecord component.private final List<BindGroupLayout.UniformDescription> The field for theuniformsrecord component.private final List<@Nullable VertexFormat> The field for thevertexFormatsrecord component.private final booleanThe field for thewantsDepthTexturerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionFrontendRenderPipeline(String name, BackendRenderPipeline backendRenderPipeline, List<@Nullable VertexFormat> vertexFormats, it.unimi.dsi.fastutil.objects.Object2IntMap<String> uniformIndices, List<BindGroupLayout.UniformDescription> uniforms, List<@Nullable ColorTargetState> colorTargetStates, boolean wantsDepthTexture, int pushConstantSize) Creates an instance of aFrontendRenderPipelinerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebackendRenderPipelinerecord component.voidclose()Returns the value of thecolorTargetStatesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisClosed()name()Returns the value of thenamerecord component.intReturns the value of thepushConstantSizerecord component.final StringtoString()Returns a string representation of this record class.it.unimi.dsi.fastutil.objects.Object2IntMap<String> Returns the value of theuniformIndicesrecord component.uniforms()Returns the value of theuniformsrecord component.Returns the value of thevertexFormatsrecord component.booleanReturns the value of thewantsDepthTexturerecord component.
-
Field Details
-
name
The field for thenamerecord component. -
backendRenderPipeline
The field for thebackendRenderPipelinerecord component. -
vertexFormats
The field for thevertexFormatsrecord component. -
uniformIndices
The field for theuniformIndicesrecord component. -
uniforms
The field for theuniformsrecord component. -
colorTargetStates
The field for thecolorTargetStatesrecord component. -
wantsDepthTexture
private final boolean wantsDepthTextureThe field for thewantsDepthTexturerecord component. -
pushConstantSize
private final int pushConstantSizeThe field for thepushConstantSizerecord component.
-
-
Constructor Details
-
FrontendRenderPipeline
public FrontendRenderPipeline(String name, BackendRenderPipeline backendRenderPipeline, List<@Nullable VertexFormat> vertexFormats, it.unimi.dsi.fastutil.objects.Object2IntMap<String> uniformIndices, List<BindGroupLayout.UniformDescription> uniforms, List<@Nullable ColorTargetState> colorTargetStates, boolean wantsDepthTexture, int pushConstantSize) Creates an instance of aFrontendRenderPipelinerecord class.- Parameters:
name- the value for thenamerecord componentbackendRenderPipeline- the value for thebackendRenderPipelinerecord componentvertexFormats- the value for thevertexFormatsrecord componentuniformIndices- the value for theuniformIndicesrecord componentuniforms- the value for theuniformsrecord componentcolorTargetStates- the value for thecolorTargetStatesrecord componentwantsDepthTexture- the value for thewantsDepthTexturerecord componentpushConstantSize- the value for thepushConstantSizerecord component
-
-
Method Details
-
isClosed
public boolean isClosed()- Specified by:
isClosedin interfaceCompiledRenderPipeline
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceUncheckedAutoCloseable
-
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
-
backendRenderPipeline
Returns the value of thebackendRenderPipelinerecord component.- Returns:
- the value of the
backendRenderPipelinerecord component
-
vertexFormats
Returns the value of thevertexFormatsrecord component.- Returns:
- the value of the
vertexFormatsrecord component
-
uniformIndices
Returns the value of theuniformIndicesrecord component.- Returns:
- the value of the
uniformIndicesrecord component
-
uniforms
Returns the value of theuniformsrecord component.- Returns:
- the value of the
uniformsrecord component
-
colorTargetStates
Returns the value of thecolorTargetStatesrecord component.- Returns:
- the value of the
colorTargetStatesrecord component
-
wantsDepthTexture
public boolean wantsDepthTexture()Returns the value of thewantsDepthTexturerecord component.- Returns:
- the value of the
wantsDepthTexturerecord component
-
pushConstantSize
public int pushConstantSize()Returns the value of thepushConstantSizerecord component.- Returns:
- the value of the
pushConstantSizerecord component
-