Module com.io7m.jcoronado.api
Package com.io7m.jcoronado.api
Class VulkanDescriptorSetAllocateInfo.Builder
- java.lang.Object
-
- com.io7m.jcoronado.api.VulkanDescriptorSetAllocateInfo.Builder
-
- Enclosing class:
- VulkanDescriptorSetAllocateInfo
public static final class VulkanDescriptorSetAllocateInfo.Builder extends java.lang.Object
Builds instances of typeVulkanDescriptorSetAllocateInfo
. 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 VulkanDescriptorSetAllocateInfo.Builder from(VulkanDescriptorSetAllocateInfoType instance)
Fill a builder with attribute values from the providedVulkanDescriptorSetAllocateInfoType
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
-
setDescriptorPool
public final VulkanDescriptorSetAllocateInfo.Builder setDescriptorPool(VulkanDescriptorPoolType descriptorPool)
Initializes the value for thedescriptorPool
attribute.- Parameters:
descriptorPool
- The value for descriptorPool- Returns:
this
builder for use in a chained invocation
-
addSetLayouts
public final VulkanDescriptorSetAllocateInfo.Builder addSetLayouts(VulkanDescriptorSetLayoutType element)
Adds one element tosetLayouts
list.- Parameters:
element
- A setLayouts element- Returns:
this
builder for use in a chained invocation
-
addSetLayouts
public final VulkanDescriptorSetAllocateInfo.Builder addSetLayouts(VulkanDescriptorSetLayoutType... elements)
Adds elements tosetLayouts
list.- Parameters:
elements
- An array of setLayouts elements- Returns:
this
builder for use in a chained invocation
-
setSetLayouts
public final VulkanDescriptorSetAllocateInfo.Builder setSetLayouts(java.lang.Iterable<? extends VulkanDescriptorSetLayoutType> elements)
Sets or replaces all elements forsetLayouts
list.- Parameters:
elements
- An iterable of setLayouts elements- Returns:
this
builder for use in a chained invocation
-
addAllSetLayouts
public final VulkanDescriptorSetAllocateInfo.Builder addAllSetLayouts(java.lang.Iterable<? extends VulkanDescriptorSetLayoutType> elements)
Adds elements tosetLayouts
list.- Parameters:
elements
- An iterable of setLayouts elements- Returns:
this
builder for use in a chained invocation
-
build
public VulkanDescriptorSetAllocateInfo build()
Builds a newVulkanDescriptorSetAllocateInfo
.- Returns:
- An immutable instance of VulkanDescriptorSetAllocateInfo
- Throws:
java.lang.IllegalStateException
- if any required attributes are missing
-
-