Module com.io7m.jcoronado.api
Package com.io7m.jcoronado.api
Class VulkanFramebufferCreateInfo.Builder
- java.lang.Object
-
- com.io7m.jcoronado.api.VulkanFramebufferCreateInfo.Builder
-
- Enclosing class:
- VulkanFramebufferCreateInfo
public static final class VulkanFramebufferCreateInfo.Builder extends java.lang.Object
Builds instances of typeVulkanFramebufferCreateInfo
. Initialize attributes and then invoke thebuild()
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
-
-
-
Method Detail
-
from
public final VulkanFramebufferCreateInfo.Builder from(VulkanFramebufferCreateInfoType instance)
Fill a builder with attribute values from the providedVulkanFramebufferCreateInfoType
instance. 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:
this
builder for use in a chained invocation
-
addFlags
public final VulkanFramebufferCreateInfo.Builder addFlags(VulkanFramebufferCreateFlag element)
Adds one element toflags
set.- Parameters:
element
- A flags element- Returns:
this
builder for use in a chained invocation
-
addFlags
public final VulkanFramebufferCreateInfo.Builder addFlags(VulkanFramebufferCreateFlag... elements)
Adds elements toflags
set.- Parameters:
elements
- An array of flags elements- Returns:
this
builder for use in a chained invocation
-
setFlags
public final VulkanFramebufferCreateInfo.Builder setFlags(java.lang.Iterable<VulkanFramebufferCreateFlag> elements)
Sets or replaces all elements forflags
set.- Parameters:
elements
- An iterable of flags elements- Returns:
this
builder for use in a chained invocation
-
addAllFlags
public final VulkanFramebufferCreateInfo.Builder addAllFlags(java.lang.Iterable<VulkanFramebufferCreateFlag> elements)
Adds elements toflags
set.- Parameters:
elements
- An iterable of flags elements- Returns:
this
builder for use in a chained invocation
-
setRenderPass
public final VulkanFramebufferCreateInfo.Builder setRenderPass(VulkanRenderPassType renderPass)
Initializes the value for therenderPass
attribute.- Parameters:
renderPass
- The value for renderPass- Returns:
this
builder for use in a chained invocation
-
addAttachments
public final VulkanFramebufferCreateInfo.Builder addAttachments(VulkanImageViewType element)
Adds one element toattachments
list.- Parameters:
element
- A attachments element- Returns:
this
builder for use in a chained invocation
-
addAttachments
public final VulkanFramebufferCreateInfo.Builder addAttachments(VulkanImageViewType... elements)
Adds elements toattachments
list.- Parameters:
elements
- An array of attachments elements- Returns:
this
builder for use in a chained invocation
-
setAttachments
public final VulkanFramebufferCreateInfo.Builder setAttachments(java.lang.Iterable<? extends VulkanImageViewType> elements)
Sets or replaces all elements forattachments
list.- Parameters:
elements
- An iterable of attachments elements- Returns:
this
builder for use in a chained invocation
-
addAllAttachments
public final VulkanFramebufferCreateInfo.Builder addAllAttachments(java.lang.Iterable<? extends VulkanImageViewType> elements)
Adds elements toattachments
list.- Parameters:
elements
- An iterable of attachments elements- Returns:
this
builder for use in a chained invocation
-
setWidth
public final VulkanFramebufferCreateInfo.Builder setWidth(int width)
Initializes the value for thewidth
attribute.- Parameters:
width
- The value for width- Returns:
this
builder for use in a chained invocation
-
setHeight
public final VulkanFramebufferCreateInfo.Builder setHeight(int height)
Initializes the value for theheight
attribute.- Parameters:
height
- The value for height- Returns:
this
builder for use in a chained invocation
-
setLayers
public final VulkanFramebufferCreateInfo.Builder setLayers(int layers)
Initializes the value for thelayers
attribute.- Parameters:
layers
- The value for layers- Returns:
this
builder for use in a chained invocation
-
build
public VulkanFramebufferCreateInfo build()
Builds a newVulkanFramebufferCreateInfo
.- Returns:
- An immutable instance of VulkanFramebufferCreateInfo
- Throws:
java.lang.IllegalStateException
- if any required attributes are missing
-
-