Class VulkanAttachmentReference
java.lang.Object
com.io7m.jcoronado.api.VulkanAttachmentReference
- All Implemented Interfaces:
VulkanAttachmentReferenceType
public final class VulkanAttachmentReference
extends Object
implements VulkanAttachmentReferenceType
Structure specifying an attachment reference.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeVulkanAttachmentReference. -
Method Summary
Modifier and TypeMethodDescriptionintbuilder()Creates a builder forVulkanAttachmentReference.static VulkanAttachmentReferencecopyOf(VulkanAttachmentReferenceType instance) Creates an immutable copy of aVulkanAttachmentReferenceTypevalue.booleanThis instance is equal to all instances ofVulkanAttachmentReferencethat have equal attribute values.inthashCode()Computes a hash code from attributes:attachment,layout.layout()static VulkanAttachmentReferenceof(int attachment, VulkanImageLayout layout) Construct a new immutableVulkanAttachmentReferenceinstance.toString()Prints the immutable valueVulkanAttachmentReferencewith attribute values.withAttachment(int value) Copy the current immutable object by setting a value for theattachmentattribute.withLayout(VulkanImageLayout value) Copy the current immutable object by setting a value for thelayoutattribute.
-
Method Details
-
attachment
public int attachment()- Specified by:
attachmentin interfaceVulkanAttachmentReferenceType- Returns:
- The index of the attachment of the render pass
-
layout
- Specified by:
layoutin interfaceVulkanAttachmentReferenceType- Returns:
- The layout the attachment uses during the subpass.
-
withAttachment
Copy the current immutable object by setting a value for theattachmentattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for attachment- Returns:
- A modified copy of the
thisobject
-
withLayout
Copy the current immutable object by setting a value for thelayoutattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for layout- Returns:
- A modified copy of the
thisobject
-
equals
-
hashCode
-
toString
-
of
Construct a new immutableVulkanAttachmentReferenceinstance.- Parameters:
attachment- The value for theattachmentattributelayout- The value for thelayoutattribute- Returns:
- An immutable VulkanAttachmentReference instance
-
copyOf
Creates an immutable copy of aVulkanAttachmentReferenceTypevalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable VulkanAttachmentReference instance
-
builder
Creates a builder forVulkanAttachmentReference.VulkanAttachmentReference.builder() .setAttachment(int) // requiredattachment.setLayout(com.io7m.jcoronado.api.VulkanImageLayout) // requiredlayout.build();- Returns:
- A new VulkanAttachmentReference builder
-