Class VulkanRenderPassCreateInfo.Builder
java.lang.Object
com.io7m.jcoronado.api.VulkanRenderPassCreateInfo.Builder
- Enclosing class:
VulkanRenderPassCreateInfo
Builds instances of type
VulkanRenderPassCreateInfo.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionaddAllAttachments(Iterable<? extends VulkanAttachmentDescription> elements) Adds elements toattachmentslist.addAllDependencies(Iterable<? extends VulkanSubpassDependency> elements) Adds elements todependencieslist.addAllFlags(Iterable<VulkanRenderPassCreateFlag> elements) Adds elements toflagsset.addAllSubpasses(Iterable<? extends VulkanSubpassDescription> elements) Adds elements tosubpasseslist.Adds one element toattachmentslist.addAttachments(VulkanAttachmentDescription... elements) Adds elements toattachmentslist.addDependencies(VulkanSubpassDependency element) Adds one element todependencieslist.addDependencies(VulkanSubpassDependency... elements) Adds elements todependencieslist.addFlags(VulkanRenderPassCreateFlag element) Adds one element toflagsset.addFlags(VulkanRenderPassCreateFlag... elements) Adds elements toflagsset.addSubpasses(VulkanSubpassDescription element) Adds one element tosubpasseslist.addSubpasses(VulkanSubpassDescription... elements) Adds elements tosubpasseslist.build()Builds a newVulkanRenderPassCreateInfo.from(VulkanRenderPassCreateInfoType instance) Fill a builder with attribute values from the providedVulkanRenderPassCreateInfoTypeinstance.setAttachments(Iterable<? extends VulkanAttachmentDescription> elements) Sets or replaces all elements forattachmentslist.setDependencies(Iterable<? extends VulkanSubpassDependency> elements) Sets or replaces all elements fordependencieslist.setFlags(Iterable<VulkanRenderPassCreateFlag> elements) Sets or replaces all elements forflagsset.setSubpasses(Iterable<? extends VulkanSubpassDescription> elements) Sets or replaces all elements forsubpasseslist.
-
Method Details
-
from
Fill a builder with attribute values from the providedVulkanRenderPassCreateInfoTypeinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
addFlags
Adds one element toflagsset.- Parameters:
element- A flags element- Returns:
thisbuilder for use in a chained invocation
-
addFlags
Adds elements toflagsset.- Parameters:
elements- An array of flags elements- Returns:
thisbuilder for use in a chained invocation
-
setFlags
public final VulkanRenderPassCreateInfo.Builder setFlags(Iterable<VulkanRenderPassCreateFlag> elements) Sets or replaces all elements forflagsset.- Parameters:
elements- An iterable of flags elements- Returns:
thisbuilder for use in a chained invocation
-
addAllFlags
public final VulkanRenderPassCreateInfo.Builder addAllFlags(Iterable<VulkanRenderPassCreateFlag> elements) Adds elements toflagsset.- Parameters:
elements- An iterable of flags elements- Returns:
thisbuilder for use in a chained invocation
-
addAttachments
Adds one element toattachmentslist.- Parameters:
element- A attachments element- Returns:
thisbuilder for use in a chained invocation
-
addAttachments
public final VulkanRenderPassCreateInfo.Builder addAttachments(VulkanAttachmentDescription... elements) Adds elements toattachmentslist.- Parameters:
elements- An array of attachments elements- Returns:
thisbuilder for use in a chained invocation
-
setAttachments
public final VulkanRenderPassCreateInfo.Builder setAttachments(Iterable<? extends VulkanAttachmentDescription> elements) Sets or replaces all elements forattachmentslist.- Parameters:
elements- An iterable of attachments elements- Returns:
thisbuilder for use in a chained invocation
-
addAllAttachments
public final VulkanRenderPassCreateInfo.Builder addAllAttachments(Iterable<? extends VulkanAttachmentDescription> elements) Adds elements toattachmentslist.- Parameters:
elements- An iterable of attachments elements- Returns:
thisbuilder for use in a chained invocation
-
addSubpasses
Adds one element tosubpasseslist.- Parameters:
element- A subpasses element- Returns:
thisbuilder for use in a chained invocation
-
addSubpasses
Adds elements tosubpasseslist.- Parameters:
elements- An array of subpasses elements- Returns:
thisbuilder for use in a chained invocation
-
setSubpasses
public final VulkanRenderPassCreateInfo.Builder setSubpasses(Iterable<? extends VulkanSubpassDescription> elements) Sets or replaces all elements forsubpasseslist.- Parameters:
elements- An iterable of subpasses elements- Returns:
thisbuilder for use in a chained invocation
-
addAllSubpasses
public final VulkanRenderPassCreateInfo.Builder addAllSubpasses(Iterable<? extends VulkanSubpassDescription> elements) Adds elements tosubpasseslist.- Parameters:
elements- An iterable of subpasses elements- Returns:
thisbuilder for use in a chained invocation
-
addDependencies
Adds one element todependencieslist.- Parameters:
element- A dependencies element- Returns:
thisbuilder for use in a chained invocation
-
addDependencies
public final VulkanRenderPassCreateInfo.Builder addDependencies(VulkanSubpassDependency... elements) Adds elements todependencieslist.- Parameters:
elements- An array of dependencies elements- Returns:
thisbuilder for use in a chained invocation
-
setDependencies
public final VulkanRenderPassCreateInfo.Builder setDependencies(Iterable<? extends VulkanSubpassDependency> elements) Sets or replaces all elements fordependencieslist.- Parameters:
elements- An iterable of dependencies elements- Returns:
thisbuilder for use in a chained invocation
-
addAllDependencies
public final VulkanRenderPassCreateInfo.Builder addAllDependencies(Iterable<? extends VulkanSubpassDependency> elements) Adds elements todependencieslist.- Parameters:
elements- An iterable of dependencies elements- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newVulkanRenderPassCreateInfo.- Returns:
- An immutable instance of VulkanRenderPassCreateInfo
- Throws:
IllegalStateException- if any required attributes are missing
-