Module com.io7m.jcoronado.api
Package com.io7m.jcoronado.api
Class VulkanDescriptorPoolCreateInfo.Builder
- java.lang.Object
-
- com.io7m.jcoronado.api.VulkanDescriptorPoolCreateInfo.Builder
-
- Enclosing class:
- VulkanDescriptorPoolCreateInfo
public static final class VulkanDescriptorPoolCreateInfo.Builder extends java.lang.Object
Builds instances of typeVulkanDescriptorPoolCreateInfo
. 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 VulkanDescriptorPoolCreateInfo.Builder from(VulkanDescriptorPoolCreateInfoType instance)
Fill a builder with attribute values from the providedVulkanDescriptorPoolCreateInfoType
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 VulkanDescriptorPoolCreateInfo.Builder addFlags(VulkanDescriptorPoolCreateFlag element)
Adds one element toflags
set.- Parameters:
element
- A flags element- Returns:
this
builder for use in a chained invocation
-
addFlags
public final VulkanDescriptorPoolCreateInfo.Builder addFlags(VulkanDescriptorPoolCreateFlag... elements)
Adds elements toflags
set.- Parameters:
elements
- An array of flags elements- Returns:
this
builder for use in a chained invocation
-
setFlags
public final VulkanDescriptorPoolCreateInfo.Builder setFlags(java.lang.Iterable<VulkanDescriptorPoolCreateFlag> 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 VulkanDescriptorPoolCreateInfo.Builder addAllFlags(java.lang.Iterable<VulkanDescriptorPoolCreateFlag> elements)
Adds elements toflags
set.- Parameters:
elements
- An iterable of flags elements- Returns:
this
builder for use in a chained invocation
-
setMaxSets
public final VulkanDescriptorPoolCreateInfo.Builder setMaxSets(int maxSets)
Initializes the value for themaxSets
attribute.- Parameters:
maxSets
- The value for maxSets- Returns:
this
builder for use in a chained invocation
-
addPoolSizes
public final VulkanDescriptorPoolCreateInfo.Builder addPoolSizes(VulkanDescriptorPoolSize element)
Adds one element topoolSizes
list.- Parameters:
element
- A poolSizes element- Returns:
this
builder for use in a chained invocation
-
addPoolSizes
public final VulkanDescriptorPoolCreateInfo.Builder addPoolSizes(VulkanDescriptorPoolSize... elements)
Adds elements topoolSizes
list.- Parameters:
elements
- An array of poolSizes elements- Returns:
this
builder for use in a chained invocation
-
setPoolSizes
public final VulkanDescriptorPoolCreateInfo.Builder setPoolSizes(java.lang.Iterable<? extends VulkanDescriptorPoolSize> elements)
Sets or replaces all elements forpoolSizes
list.- Parameters:
elements
- An iterable of poolSizes elements- Returns:
this
builder for use in a chained invocation
-
addAllPoolSizes
public final VulkanDescriptorPoolCreateInfo.Builder addAllPoolSizes(java.lang.Iterable<? extends VulkanDescriptorPoolSize> elements)
Adds elements topoolSizes
list.- Parameters:
elements
- An iterable of poolSizes elements- Returns:
this
builder for use in a chained invocation
-
build
public VulkanDescriptorPoolCreateInfo build()
Builds a newVulkanDescriptorPoolCreateInfo
.- Returns:
- An immutable instance of VulkanDescriptorPoolCreateInfo
- Throws:
java.lang.IllegalStateException
- if any required attributes are missing
-
-