Record Class RenderPassDescriptor
java.lang.Object
java.lang.Record
com.mojang.renderpearl.api.commands.RenderPassDescriptor
public record RenderPassDescriptor(Supplier<String> label, List<@Nullable RenderPassDescriptor.Attachment<Optional<Vector4fc>>> colorAttachments, @Nullable RenderPassDescriptor.Attachment<OptionalDouble> depthAttachment, RenderPass.RenderArea renderArea)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<@Nullable RenderPassDescriptor.Attachment<Optional<Vector4fc>>> The field for thecolorAttachmentsrecord component.private final @Nullable RenderPassDescriptor.Attachment<OptionalDouble> The field for thedepthAttachmentrecord component.The field for thelabelrecord component.private final RenderPass.RenderAreaThe field for therenderArearecord component. -
Constructor Summary
ConstructorsConstructorDescriptionRenderPassDescriptor(Supplier<String> label, List<@Nullable RenderPassDescriptor.Attachment<Optional<Vector4fc>>> colorAttachments, @Nullable RenderPassDescriptor.Attachment<OptionalDouble> depthAttachment, RenderPass.RenderArea renderArea) Creates an instance of aRenderPassDescriptorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic RenderPassDescriptor.BuilderReturns the value of thecolorAttachmentsrecord component.Returns the value of thedepthAttachmentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.label()Returns the value of thelabelrecord component.Returns the value of therenderArearecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
label
-
colorAttachments
The field for thecolorAttachmentsrecord component. -
depthAttachment
The field for thedepthAttachmentrecord component. -
renderArea
The field for therenderArearecord component.
-
-
Constructor Details
-
RenderPassDescriptor
public RenderPassDescriptor(Supplier<String> label, List<@Nullable RenderPassDescriptor.Attachment<Optional<Vector4fc>>> colorAttachments, @Nullable RenderPassDescriptor.Attachment<OptionalDouble> depthAttachment, RenderPass.RenderArea renderArea) Creates an instance of aRenderPassDescriptorrecord class.- Parameters:
label- the value for thelabelrecord componentcolorAttachments- the value for thecolorAttachmentsrecord componentdepthAttachment- the value for thedepthAttachmentrecord componentrenderArea- the value for therenderArearecord component
-
-
Method Details
-
builder
-
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). -
label
-
colorAttachments
Returns the value of thecolorAttachmentsrecord component.- Returns:
- the value of the
colorAttachmentsrecord component
-
depthAttachment
Returns the value of thedepthAttachmentrecord component.- Returns:
- the value of the
depthAttachmentrecord component
-
renderArea
Returns the value of therenderArearecord component.- Returns:
- the value of the
renderArearecord component
-