Class VulkanFramebufferCreateInfo.Builder
java.lang.Object
com.io7m.jcoronado.api.VulkanFramebufferCreateInfo.Builder
- Enclosing class:
VulkanFramebufferCreateInfo
Builds instances of type
VulkanFramebufferCreateInfo.
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 VulkanImageViewType> elements) Adds elements toattachmentslist.addAllFlags(Iterable<VulkanFramebufferCreateFlag> elements) Adds elements toflagsset.addAttachments(VulkanImageViewType element) Adds one element toattachmentslist.addAttachments(VulkanImageViewType... elements) Adds elements toattachmentslist.addFlags(VulkanFramebufferCreateFlag element) Adds one element toflagsset.addFlags(VulkanFramebufferCreateFlag... elements) Adds elements toflagsset.build()Builds a newVulkanFramebufferCreateInfo.from(VulkanFramebufferCreateInfoType instance) Fill a builder with attribute values from the providedVulkanFramebufferCreateInfoTypeinstance.setAttachments(Iterable<? extends VulkanImageViewType> elements) Sets or replaces all elements forattachmentslist.setFlags(Iterable<VulkanFramebufferCreateFlag> elements) Sets or replaces all elements forflagsset.setHeight(int height) Initializes the value for theheightattribute.setLayers(int layers) Initializes the value for thelayersattribute.setRenderPass(VulkanRenderPassType renderPass) Initializes the value for therenderPassattribute.setWidth(int width) Initializes the value for thewidthattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedVulkanFramebufferCreateInfoTypeinstance. 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 VulkanFramebufferCreateInfo.Builder setFlags(Iterable<VulkanFramebufferCreateFlag> 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 VulkanFramebufferCreateInfo.Builder addAllFlags(Iterable<VulkanFramebufferCreateFlag> elements) Adds elements toflagsset.- Parameters:
elements- An iterable of flags elements- Returns:
thisbuilder for use in a chained invocation
-
setRenderPass
Initializes the value for therenderPassattribute.- Parameters:
renderPass- The value for renderPass- 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
Adds elements toattachmentslist.- Parameters:
elements- An array of attachments elements- Returns:
thisbuilder for use in a chained invocation
-
setAttachments
public final VulkanFramebufferCreateInfo.Builder setAttachments(Iterable<? extends VulkanImageViewType> 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 VulkanFramebufferCreateInfo.Builder addAllAttachments(Iterable<? extends VulkanImageViewType> elements) Adds elements toattachmentslist.- Parameters:
elements- An iterable of attachments elements- Returns:
thisbuilder for use in a chained invocation
-
setWidth
-
setHeight
-
setLayers
-
build
Builds a newVulkanFramebufferCreateInfo.- Returns:
- An immutable instance of VulkanFramebufferCreateInfo
- Throws:
IllegalStateException- if any required attributes are missing
-