Class VulkanDescriptorSetAllocateInfo
java.lang.Object
com.io7m.jcoronado.api.VulkanDescriptorSetAllocateInfo
- All Implemented Interfaces:
VulkanDescriptorSetAllocateInfoType
public final class VulkanDescriptorSetAllocateInfo
extends Object
implements VulkanDescriptorSetAllocateInfoType
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeVulkanDescriptorSetAllocateInfo. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forVulkanDescriptorSetAllocateInfo.copyOf(VulkanDescriptorSetAllocateInfoType instance) Creates an immutable copy of aVulkanDescriptorSetAllocateInfoTypevalue.IfVulkanDescriptorBindingFlag.VK_DESCRIPTOR_BINDING_VARIABLE_DESCRIPTOR_COUNTis used, each element in this list specifies the descriptor count for the corresponding layout insetLayouts().booleanThis instance is equal to all instances ofVulkanDescriptorSetAllocateInfothat have equal attribute values.inthashCode()Computes a hash code from attributes:descriptorPool,setLayouts,descriptorCounts.toString()Prints the immutable valueVulkanDescriptorSetAllocateInfowith attribute values.withDescriptorCounts(long... elements) Copy the current immutable object with elements that replace the content ofdescriptorCounts.withDescriptorCounts(Iterable<Long> elements) Copy the current immutable object with elements that replace the content ofdescriptorCounts.Copy the current immutable object by setting a value for thedescriptorPoolattribute.withSetLayouts(VulkanDescriptorSetLayoutType... elements) Copy the current immutable object with elements that replace the content ofsetLayouts.withSetLayouts(Iterable<? extends VulkanDescriptorSetLayoutType> elements) Copy the current immutable object with elements that replace the content ofsetLayouts.Methods inherited from interface VulkanDescriptorSetAllocateInfoType
checkPreconditions
-
Method Details
-
descriptorPool
- Specified by:
descriptorPoolin interfaceVulkanDescriptorSetAllocateInfoType- Returns:
- The descriptor pool from which descriptor sets will be allocated
-
setLayouts
- Specified by:
setLayoutsin interfaceVulkanDescriptorSetAllocateInfoType- Returns:
- An array of descriptor set layouts, with each member specifying how the corresponding descriptor set is allocated.
-
descriptorCounts
IfVulkanDescriptorBindingFlag.VK_DESCRIPTOR_BINDING_VARIABLE_DESCRIPTOR_COUNTis used, each element in this list specifies the descriptor count for the corresponding layout insetLayouts().- Specified by:
descriptorCountsin interfaceVulkanDescriptorSetAllocateInfoType- Returns:
- The list of descriptor counts
- See Also:
-
withDescriptorPool
Copy the current immutable object by setting a value for thedescriptorPoolattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for descriptorPool- Returns:
- A modified copy or the
thisobject
-
withSetLayouts
public final VulkanDescriptorSetAllocateInfo withSetLayouts(VulkanDescriptorSetLayoutType... elements) Copy the current immutable object with elements that replace the content ofsetLayouts.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withSetLayouts
public final VulkanDescriptorSetAllocateInfo withSetLayouts(Iterable<? extends VulkanDescriptorSetLayoutType> elements) Copy the current immutable object with elements that replace the content ofsetLayouts. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of setLayouts elements to set- Returns:
- A modified copy or
thisif not changed
-
withDescriptorCounts
Copy the current immutable object with elements that replace the content ofdescriptorCounts.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withDescriptorCounts
Copy the current immutable object with elements that replace the content ofdescriptorCounts. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of descriptorCounts elements to set- Returns:
- A modified copy or
thisif not changed
-
equals
-
hashCode
-
toString
-
copyOf
Creates an immutable copy of aVulkanDescriptorSetAllocateInfoTypevalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable VulkanDescriptorSetAllocateInfo instance
-
builder
Creates a builder forVulkanDescriptorSetAllocateInfo.VulkanDescriptorSetAllocateInfo.builder() .setDescriptorPool(com.io7m.jcoronado.api.VulkanDescriptorPoolType) // required
descriptorPool.addSetLayouts|addAllSetLayouts(com.io7m.jcoronado.api.VulkanDescriptorSetLayoutType) //setLayoutselements .addDescriptorCounts|addAllDescriptorCounts(long) //descriptorCountselements .build();- Returns:
- A new VulkanDescriptorSetAllocateInfo builder
-