Class VulkanSubpassDescription.Builder
java.lang.Object
com.io7m.jcoronado.api.VulkanSubpassDescription.Builder
- Enclosing class:
VulkanSubpassDescription
Builds instances of type
VulkanSubpassDescription.
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 TypeMethodDescriptionaddAllColorAttachments(Iterable<? extends VulkanAttachmentReference> elements) Adds elements tocolorAttachmentslist.addAllFlags(Iterable<VulkanSubpassDescriptionFlag> elements) Adds elements toflagsset.addAllInputAttachments(Iterable<? extends VulkanAttachmentReference> elements) Adds elements toinputAttachmentslist.addAllPreserveAttachments(Iterable<Integer> elements) Adds elements topreserveAttachmentslist.addAllResolveAttachments(Iterable<? extends VulkanAttachmentReference> elements) Adds elements toresolveAttachmentslist.Adds one element tocolorAttachmentslist.addColorAttachments(VulkanAttachmentReference... elements) Adds elements tocolorAttachmentslist.addFlags(VulkanSubpassDescriptionFlag element) Adds one element toflagsset.addFlags(VulkanSubpassDescriptionFlag... elements) Adds elements toflagsset.Adds one element toinputAttachmentslist.addInputAttachments(VulkanAttachmentReference... elements) Adds elements toinputAttachmentslist.addPreserveAttachments(int element) Adds one element topreserveAttachmentslist.addPreserveAttachments(int... elements) Adds elements topreserveAttachmentslist.Adds one element toresolveAttachmentslist.addResolveAttachments(VulkanAttachmentReference... elements) Adds elements toresolveAttachmentslist.build()Builds a newVulkanSubpassDescription.from(VulkanSubpassDescriptionType instance) Fill a builder with attribute values from the providedVulkanSubpassDescriptionTypeinstance.setColorAttachments(Iterable<? extends VulkanAttachmentReference> elements) Sets or replaces all elements forcolorAttachmentslist.setDepthStencilAttachment(VulkanAttachmentReference depthStencilAttachment) Initializes the optional valuedepthStencilAttachmentto depthStencilAttachment.setDepthStencilAttachment(Optional<? extends VulkanAttachmentReference> depthStencilAttachment) Initializes the optional valuedepthStencilAttachmentto depthStencilAttachment.setFlags(Iterable<VulkanSubpassDescriptionFlag> elements) Sets or replaces all elements forflagsset.setInputAttachments(Iterable<? extends VulkanAttachmentReference> elements) Sets or replaces all elements forinputAttachmentslist.setPipelineBindPoint(VulkanPipelineBindPoint pipelineBindPoint) Initializes the value for thepipelineBindPointattribute.setPreserveAttachments(Iterable<Integer> elements) Sets or replaces all elements forpreserveAttachmentslist.setResolveAttachments(Iterable<? extends VulkanAttachmentReference> elements) Sets or replaces all elements forresolveAttachmentslist.
-
Method Details
-
from
Fill a builder with attribute values from the providedVulkanSubpassDescriptionTypeinstance. 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 VulkanSubpassDescription.Builder setFlags(Iterable<VulkanSubpassDescriptionFlag> 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 VulkanSubpassDescription.Builder addAllFlags(Iterable<VulkanSubpassDescriptionFlag> elements) Adds elements toflagsset.- Parameters:
elements- An iterable of flags elements- Returns:
thisbuilder for use in a chained invocation
-
setPipelineBindPoint
public final VulkanSubpassDescription.Builder setPipelineBindPoint(VulkanPipelineBindPoint pipelineBindPoint) Initializes the value for thepipelineBindPointattribute.- Parameters:
pipelineBindPoint- The value for pipelineBindPoint- Returns:
thisbuilder for use in a chained invocation
-
addInputAttachments
public final VulkanSubpassDescription.Builder addInputAttachments(VulkanAttachmentReference element) Adds one element toinputAttachmentslist.- Parameters:
element- A inputAttachments element- Returns:
thisbuilder for use in a chained invocation
-
addInputAttachments
public final VulkanSubpassDescription.Builder addInputAttachments(VulkanAttachmentReference... elements) Adds elements toinputAttachmentslist.- Parameters:
elements- An array of inputAttachments elements- Returns:
thisbuilder for use in a chained invocation
-
setInputAttachments
public final VulkanSubpassDescription.Builder setInputAttachments(Iterable<? extends VulkanAttachmentReference> elements) Sets or replaces all elements forinputAttachmentslist.- Parameters:
elements- An iterable of inputAttachments elements- Returns:
thisbuilder for use in a chained invocation
-
addAllInputAttachments
public final VulkanSubpassDescription.Builder addAllInputAttachments(Iterable<? extends VulkanAttachmentReference> elements) Adds elements toinputAttachmentslist.- Parameters:
elements- An iterable of inputAttachments elements- Returns:
thisbuilder for use in a chained invocation
-
addColorAttachments
public final VulkanSubpassDescription.Builder addColorAttachments(VulkanAttachmentReference element) Adds one element tocolorAttachmentslist.- Parameters:
element- A colorAttachments element- Returns:
thisbuilder for use in a chained invocation
-
addColorAttachments
public final VulkanSubpassDescription.Builder addColorAttachments(VulkanAttachmentReference... elements) Adds elements tocolorAttachmentslist.- Parameters:
elements- An array of colorAttachments elements- Returns:
thisbuilder for use in a chained invocation
-
setColorAttachments
public final VulkanSubpassDescription.Builder setColorAttachments(Iterable<? extends VulkanAttachmentReference> elements) Sets or replaces all elements forcolorAttachmentslist.- Parameters:
elements- An iterable of colorAttachments elements- Returns:
thisbuilder for use in a chained invocation
-
addAllColorAttachments
public final VulkanSubpassDescription.Builder addAllColorAttachments(Iterable<? extends VulkanAttachmentReference> elements) Adds elements tocolorAttachmentslist.- Parameters:
elements- An iterable of colorAttachments elements- Returns:
thisbuilder for use in a chained invocation
-
addResolveAttachments
public final VulkanSubpassDescription.Builder addResolveAttachments(VulkanAttachmentReference element) Adds one element toresolveAttachmentslist.- Parameters:
element- A resolveAttachments element- Returns:
thisbuilder for use in a chained invocation
-
addResolveAttachments
public final VulkanSubpassDescription.Builder addResolveAttachments(VulkanAttachmentReference... elements) Adds elements toresolveAttachmentslist.- Parameters:
elements- An array of resolveAttachments elements- Returns:
thisbuilder for use in a chained invocation
-
setResolveAttachments
public final VulkanSubpassDescription.Builder setResolveAttachments(Iterable<? extends VulkanAttachmentReference> elements) Sets or replaces all elements forresolveAttachmentslist.- Parameters:
elements- An iterable of resolveAttachments elements- Returns:
thisbuilder for use in a chained invocation
-
addAllResolveAttachments
public final VulkanSubpassDescription.Builder addAllResolveAttachments(Iterable<? extends VulkanAttachmentReference> elements) Adds elements toresolveAttachmentslist.- Parameters:
elements- An iterable of resolveAttachments elements- Returns:
thisbuilder for use in a chained invocation
-
setDepthStencilAttachment
public final VulkanSubpassDescription.Builder setDepthStencilAttachment(VulkanAttachmentReference depthStencilAttachment) Initializes the optional valuedepthStencilAttachmentto depthStencilAttachment.- Parameters:
depthStencilAttachment- The value for depthStencilAttachment- Returns:
thisbuilder for chained invocation
-
setDepthStencilAttachment
public final VulkanSubpassDescription.Builder setDepthStencilAttachment(Optional<? extends VulkanAttachmentReference> depthStencilAttachment) Initializes the optional valuedepthStencilAttachmentto depthStencilAttachment.- Parameters:
depthStencilAttachment- The value for depthStencilAttachment- Returns:
thisbuilder for use in a chained invocation
-
addPreserveAttachments
Adds one element topreserveAttachmentslist.- Parameters:
element- A preserveAttachments element- Returns:
thisbuilder for use in a chained invocation
-
addPreserveAttachments
Adds elements topreserveAttachmentslist.- Parameters:
elements- An array of preserveAttachments elements- Returns:
thisbuilder for use in a chained invocation
-
setPreserveAttachments
Sets or replaces all elements forpreserveAttachmentslist.- Parameters:
elements- An iterable of preserveAttachments elements- Returns:
thisbuilder for use in a chained invocation
-
addAllPreserveAttachments
Adds elements topreserveAttachmentslist.- Parameters:
elements- An iterable of preserveAttachments elements- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newVulkanSubpassDescription.- Returns:
- An immutable instance of VulkanSubpassDescription
- Throws:
IllegalStateException- if any required attributes are missing
-