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.booleanThis instance is equal to all instances ofVulkanDescriptorSetAllocateInfothat have equal attribute values.inthashCode()Computes a hash code from attributes:descriptorPool,setLayouts.toString()Prints the immutable valueVulkanDescriptorSetAllocateInfowith attribute values.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.
-
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.
-
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
-
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 .build();- Returns:
- A new VulkanDescriptorSetAllocateInfo builder
-