Class VulkanRenderPassCreateInfo
java.lang.Object
com.io7m.jcoronado.api.VulkanRenderPassCreateInfo
- All Implemented Interfaces:
VulkanRenderPassCreateInfoType
public final class VulkanRenderPassCreateInfo
extends Object
implements VulkanRenderPassCreateInfoType
Structure specifying parameters of a newly created render pass.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeVulkanRenderPassCreateInfo. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forVulkanRenderPassCreateInfo.static VulkanRenderPassCreateInfocopyOf(VulkanRenderPassCreateInfoType instance) Creates an immutable copy of aVulkanRenderPassCreateInfoTypevalue.booleanThis instance is equal to all instances ofVulkanRenderPassCreateInfothat have equal attribute values.flags()inthashCode()Computes a hash code from attributes:flags,attachments,subpasses,dependencies.static VulkanRenderPassCreateInfoof(Iterable<VulkanRenderPassCreateFlag> flags, Iterable<? extends VulkanAttachmentDescription> attachments, Iterable<? extends VulkanSubpassDescription> subpasses, Iterable<? extends VulkanSubpassDependency> dependencies) Construct a new immutableVulkanRenderPassCreateInfoinstance.static VulkanRenderPassCreateInfoof(Set<VulkanRenderPassCreateFlag> flags, List<VulkanAttachmentDescription> attachments, List<VulkanSubpassDescription> subpasses, List<VulkanSubpassDependency> dependencies) Construct a new immutableVulkanRenderPassCreateInfoinstance.toString()Prints the immutable valueVulkanRenderPassCreateInfowith attribute values.withAttachments(VulkanAttachmentDescription... elements) Copy the current immutable object with elements that replace the content ofattachments.withAttachments(Iterable<? extends VulkanAttachmentDescription> elements) Copy the current immutable object with elements that replace the content ofattachments.withDependencies(VulkanSubpassDependency... elements) Copy the current immutable object with elements that replace the content ofdependencies.withDependencies(Iterable<? extends VulkanSubpassDependency> elements) Copy the current immutable object with elements that replace the content ofdependencies.withFlags(VulkanRenderPassCreateFlag... elements) Copy the current immutable object with elements that replace the content offlags.withFlags(Iterable<VulkanRenderPassCreateFlag> elements) Copy the current immutable object with elements that replace the content offlags.withSubpasses(VulkanSubpassDescription... elements) Copy the current immutable object with elements that replace the content ofsubpasses.withSubpasses(Iterable<? extends VulkanSubpassDescription> elements) Copy the current immutable object with elements that replace the content ofsubpasses.
-
Method Details
-
flags
- Specified by:
flagsin interfaceVulkanRenderPassCreateInfoType- Returns:
- The module creation flags
-
attachments
- Specified by:
attachmentsin interfaceVulkanRenderPassCreateInfoType- Returns:
- The render pass attachments
-
subpasses
- Specified by:
subpassesin interfaceVulkanRenderPassCreateInfoType- Returns:
- The subpasses
-
dependencies
- Specified by:
dependenciesin interfaceVulkanRenderPassCreateInfoType- Returns:
- The subpass dependencies
-
withFlags
Copy the current immutable object with elements that replace the content offlags.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withFlags
Copy the current immutable object with elements that replace the content offlags. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of flags elements to set- Returns:
- A modified copy of
thisobject
-
withAttachments
Copy the current immutable object with elements that replace the content ofattachments.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withAttachments
public final VulkanRenderPassCreateInfo withAttachments(Iterable<? extends VulkanAttachmentDescription> elements) Copy the current immutable object with elements that replace the content ofattachments. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of attachments elements to set- Returns:
- A modified copy of
thisobject
-
withSubpasses
Copy the current immutable object with elements that replace the content ofsubpasses.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withSubpasses
public final VulkanRenderPassCreateInfo withSubpasses(Iterable<? extends VulkanSubpassDescription> elements) Copy the current immutable object with elements that replace the content ofsubpasses. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of subpasses elements to set- Returns:
- A modified copy of
thisobject
-
withDependencies
Copy the current immutable object with elements that replace the content ofdependencies.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withDependencies
public final VulkanRenderPassCreateInfo withDependencies(Iterable<? extends VulkanSubpassDependency> elements) Copy the current immutable object with elements that replace the content ofdependencies. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of dependencies elements to set- Returns:
- A modified copy of
thisobject
-
equals
-
hashCode
-
toString
-
of
public static VulkanRenderPassCreateInfo of(Set<VulkanRenderPassCreateFlag> flags, List<VulkanAttachmentDescription> attachments, List<VulkanSubpassDescription> subpasses, List<VulkanSubpassDependency> dependencies) Construct a new immutableVulkanRenderPassCreateInfoinstance.- Parameters:
flags- The value for theflagsattributeattachments- The value for theattachmentsattributesubpasses- The value for thesubpassesattributedependencies- The value for thedependenciesattribute- Returns:
- An immutable VulkanRenderPassCreateInfo instance
-
of
public static VulkanRenderPassCreateInfo of(Iterable<VulkanRenderPassCreateFlag> flags, Iterable<? extends VulkanAttachmentDescription> attachments, Iterable<? extends VulkanSubpassDescription> subpasses, Iterable<? extends VulkanSubpassDependency> dependencies) Construct a new immutableVulkanRenderPassCreateInfoinstance.- Parameters:
flags- The value for theflagsattributeattachments- The value for theattachmentsattributesubpasses- The value for thesubpassesattributedependencies- The value for thedependenciesattribute- Returns:
- An immutable VulkanRenderPassCreateInfo instance
-
copyOf
Creates an immutable copy of aVulkanRenderPassCreateInfoTypevalue. 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 VulkanRenderPassCreateInfo instance
-
builder
Creates a builder forVulkanRenderPassCreateInfo.VulkanRenderPassCreateInfo.builder() .addFlags|addAllFlags(com.io7m.jcoronado.api.VulkanRenderPassCreateFlag) //flagselements .addAttachments|addAllAttachments(VulkanAttachmentDescription) //attachmentselements .addSubpasses|addAllSubpasses(VulkanSubpassDescription) //subpasseselements .addDependencies|addAllDependencies(VulkanSubpassDependency) //dependencieselements .build();- Returns:
- A new VulkanRenderPassCreateInfo builder
-