- java.lang.Object
-
- com.io7m.jcoronado.api.VulkanRenderPassCreateInfo
-
- All Implemented Interfaces:
VulkanRenderPassCreateInfoType
public final class VulkanRenderPassCreateInfo extends java.lang.Object implements VulkanRenderPassCreateInfoType
Structure specifying parameters of a newly created render pass.- See Also:
- "VkRenderPassCreateInfo"
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VulkanRenderPassCreateInfo.Builder
Builds instances of typeVulkanRenderPassCreateInfo
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<VulkanAttachmentDescription>
attachments()
static VulkanRenderPassCreateInfo.Builder
builder()
Creates a builder forVulkanRenderPassCreateInfo
.static VulkanRenderPassCreateInfo
copyOf(VulkanRenderPassCreateInfoType instance)
Creates an immutable copy of aVulkanRenderPassCreateInfoType
value.java.util.List<VulkanSubpassDependency>
dependencies()
boolean
equals(java.lang.Object another)
This instance is equal to all instances ofVulkanRenderPassCreateInfo
that have equal attribute values.java.util.Set<VulkanRenderPassCreateFlag>
flags()
int
hashCode()
Computes a hash code from attributes:flags
,attachments
,subpasses
,dependencies
.static VulkanRenderPassCreateInfo
of(java.lang.Iterable<VulkanRenderPassCreateFlag> flags, java.lang.Iterable<? extends VulkanAttachmentDescription> attachments, java.lang.Iterable<? extends VulkanSubpassDescription> subpasses, java.lang.Iterable<? extends VulkanSubpassDependency> dependencies)
Construct a new immutableVulkanRenderPassCreateInfo
instance.static VulkanRenderPassCreateInfo
of(java.util.Set<VulkanRenderPassCreateFlag> flags, java.util.List<VulkanAttachmentDescription> attachments, java.util.List<VulkanSubpassDescription> subpasses, java.util.List<VulkanSubpassDependency> dependencies)
Construct a new immutableVulkanRenderPassCreateInfo
instance.java.util.List<VulkanSubpassDescription>
subpasses()
java.lang.String
toString()
Prints the immutable valueVulkanRenderPassCreateInfo
with attribute values.VulkanRenderPassCreateInfo
withAttachments(VulkanAttachmentDescription... elements)
Copy the current immutable object with elements that replace the content ofattachments
.VulkanRenderPassCreateInfo
withAttachments(java.lang.Iterable<? extends VulkanAttachmentDescription> elements)
Copy the current immutable object with elements that replace the content ofattachments
.VulkanRenderPassCreateInfo
withDependencies(VulkanSubpassDependency... elements)
Copy the current immutable object with elements that replace the content ofdependencies
.VulkanRenderPassCreateInfo
withDependencies(java.lang.Iterable<? extends VulkanSubpassDependency> elements)
Copy the current immutable object with elements that replace the content ofdependencies
.VulkanRenderPassCreateInfo
withFlags(VulkanRenderPassCreateFlag... elements)
Copy the current immutable object with elements that replace the content offlags
.VulkanRenderPassCreateInfo
withFlags(java.lang.Iterable<VulkanRenderPassCreateFlag> elements)
Copy the current immutable object with elements that replace the content offlags
.VulkanRenderPassCreateInfo
withSubpasses(VulkanSubpassDescription... elements)
Copy the current immutable object with elements that replace the content ofsubpasses
.VulkanRenderPassCreateInfo
withSubpasses(java.lang.Iterable<? extends VulkanSubpassDescription> elements)
Copy the current immutable object with elements that replace the content ofsubpasses
.
-
-
-
Method Detail
-
flags
public java.util.Set<VulkanRenderPassCreateFlag> flags()
- Specified by:
flags
in interfaceVulkanRenderPassCreateInfoType
- Returns:
- The module creation flags
-
attachments
public java.util.List<VulkanAttachmentDescription> attachments()
- Specified by:
attachments
in interfaceVulkanRenderPassCreateInfoType
- Returns:
- The render pass attachments
-
subpasses
public java.util.List<VulkanSubpassDescription> subpasses()
- Specified by:
subpasses
in interfaceVulkanRenderPassCreateInfoType
- Returns:
- The subpasses
-
dependencies
public java.util.List<VulkanSubpassDependency> dependencies()
- Specified by:
dependencies
in interfaceVulkanRenderPassCreateInfoType
- Returns:
- The subpass dependencies
-
withFlags
public final VulkanRenderPassCreateInfo withFlags(VulkanRenderPassCreateFlag... elements)
Copy the current immutable object with elements that replace the content offlags
.- Parameters:
elements
- The elements to set- Returns:
- A modified copy of
this
object
-
withFlags
public final VulkanRenderPassCreateInfo withFlags(java.lang.Iterable<VulkanRenderPassCreateFlag> elements)
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
this
object
-
withAttachments
public final VulkanRenderPassCreateInfo withAttachments(VulkanAttachmentDescription... elements)
Copy the current immutable object with elements that replace the content ofattachments
.- Parameters:
elements
- The elements to set- Returns:
- A modified copy of
this
object
-
withAttachments
public final VulkanRenderPassCreateInfo withAttachments(java.lang.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
this
object
-
withSubpasses
public final VulkanRenderPassCreateInfo withSubpasses(VulkanSubpassDescription... elements)
Copy the current immutable object with elements that replace the content ofsubpasses
.- Parameters:
elements
- The elements to set- Returns:
- A modified copy of
this
object
-
withSubpasses
public final VulkanRenderPassCreateInfo withSubpasses(java.lang.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
this
object
-
withDependencies
public final VulkanRenderPassCreateInfo withDependencies(VulkanSubpassDependency... elements)
Copy the current immutable object with elements that replace the content ofdependencies
.- Parameters:
elements
- The elements to set- Returns:
- A modified copy of
this
object
-
withDependencies
public final VulkanRenderPassCreateInfo withDependencies(java.lang.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
this
object
-
equals
public boolean equals(java.lang.Object another)
This instance is equal to all instances ofVulkanRenderPassCreateInfo
that have equal attribute values.- Overrides:
equals
in classjava.lang.Object
- Returns:
true
ifthis
is equal toanother
instance
-
hashCode
public int hashCode()
Computes a hash code from attributes:flags
,attachments
,subpasses
,dependencies
.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueVulkanRenderPassCreateInfo
with attribute values.- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string representation of the value
-
of
public static VulkanRenderPassCreateInfo of(java.util.Set<VulkanRenderPassCreateFlag> flags, java.util.List<VulkanAttachmentDescription> attachments, java.util.List<VulkanSubpassDescription> subpasses, java.util.List<VulkanSubpassDependency> dependencies)
Construct a new immutableVulkanRenderPassCreateInfo
instance.- Parameters:
flags
- The value for theflags
attributeattachments
- The value for theattachments
attributesubpasses
- The value for thesubpasses
attributedependencies
- The value for thedependencies
attribute- Returns:
- An immutable VulkanRenderPassCreateInfo instance
-
of
public static VulkanRenderPassCreateInfo of(java.lang.Iterable<VulkanRenderPassCreateFlag> flags, java.lang.Iterable<? extends VulkanAttachmentDescription> attachments, java.lang.Iterable<? extends VulkanSubpassDescription> subpasses, java.lang.Iterable<? extends VulkanSubpassDependency> dependencies)
Construct a new immutableVulkanRenderPassCreateInfo
instance.- Parameters:
flags
- The value for theflags
attributeattachments
- The value for theattachments
attributesubpasses
- The value for thesubpasses
attributedependencies
- The value for thedependencies
attribute- Returns:
- An immutable VulkanRenderPassCreateInfo instance
-
copyOf
public static VulkanRenderPassCreateInfo copyOf(VulkanRenderPassCreateInfoType instance)
Creates an immutable copy of aVulkanRenderPassCreateInfoType
value. 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
public static VulkanRenderPassCreateInfo.Builder builder()
Creates a builder forVulkanRenderPassCreateInfo
.- Returns:
- A new VulkanRenderPassCreateInfo builder
-
-