- java.lang.Object
-
- com.io7m.jcoronado.api.VulkanDescriptorSetAllocateInfo
-
- All Implemented Interfaces:
VulkanDescriptorSetAllocateInfoType
public final class VulkanDescriptorSetAllocateInfo extends java.lang.Object implements VulkanDescriptorSetAllocateInfoType
- See Also:
- "VkDescriptorSetAllocateInfo"
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VulkanDescriptorSetAllocateInfo.Builder
Builds instances of typeVulkanDescriptorSetAllocateInfo
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VulkanDescriptorSetAllocateInfo.Builder
builder()
Creates a builder forVulkanDescriptorSetAllocateInfo
.static VulkanDescriptorSetAllocateInfo
copyOf(VulkanDescriptorSetAllocateInfoType instance)
Creates an immutable copy of aVulkanDescriptorSetAllocateInfoType
value.VulkanDescriptorPoolType
descriptorPool()
boolean
equals(java.lang.Object another)
This instance is equal to all instances ofVulkanDescriptorSetAllocateInfo
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:descriptorPool
,setLayouts
.static VulkanDescriptorSetAllocateInfo
of(VulkanDescriptorPoolType descriptorPool, java.lang.Iterable<? extends VulkanDescriptorSetLayoutType> setLayouts)
Construct a new immutableVulkanDescriptorSetAllocateInfo
instance.static VulkanDescriptorSetAllocateInfo
of(VulkanDescriptorPoolType descriptorPool, java.util.List<VulkanDescriptorSetLayoutType> setLayouts)
Construct a new immutableVulkanDescriptorSetAllocateInfo
instance.java.util.List<VulkanDescriptorSetLayoutType>
setLayouts()
java.lang.String
toString()
Prints the immutable valueVulkanDescriptorSetAllocateInfo
with attribute values.VulkanDescriptorSetAllocateInfo
withDescriptorPool(VulkanDescriptorPoolType value)
Copy the current immutable object by setting a value for thedescriptorPool
attribute.VulkanDescriptorSetAllocateInfo
withSetLayouts(VulkanDescriptorSetLayoutType... elements)
Copy the current immutable object with elements that replace the content ofsetLayouts
.VulkanDescriptorSetAllocateInfo
withSetLayouts(java.lang.Iterable<? extends VulkanDescriptorSetLayoutType> elements)
Copy the current immutable object with elements that replace the content ofsetLayouts
.
-
-
-
Method Detail
-
descriptorPool
public VulkanDescriptorPoolType descriptorPool()
- Specified by:
descriptorPool
in interfaceVulkanDescriptorSetAllocateInfoType
- Returns:
- The descriptor pool from which descriptor sets will be allocated
-
setLayouts
public java.util.List<VulkanDescriptorSetLayoutType> setLayouts()
- Specified by:
setLayouts
in interfaceVulkanDescriptorSetAllocateInfoType
- Returns:
- An array of descriptor set layouts, with each member specifying how the corresponding descriptor set is allocated.
-
withDescriptorPool
public final VulkanDescriptorSetAllocateInfo withDescriptorPool(VulkanDescriptorPoolType value)
Copy the current immutable object by setting a value for thedescriptorPool
attribute. 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 of the
this
object
-
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
this
object
-
withSetLayouts
public final VulkanDescriptorSetAllocateInfo withSetLayouts(java.lang.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 of
this
object
-
equals
public boolean equals(java.lang.Object another)
This instance is equal to all instances ofVulkanDescriptorSetAllocateInfo
that have equal attribute values.- Overrides:
equals
in classjava.lang.Object
- Returns:
true
ifthis
is equal toanother
instance
-
hashCode
public int hashCode()
Computes a hash code from attributes:descriptorPool
,setLayouts
.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueVulkanDescriptorSetAllocateInfo
with attribute values.- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string representation of the value
-
of
public static VulkanDescriptorSetAllocateInfo of(VulkanDescriptorPoolType descriptorPool, java.util.List<VulkanDescriptorSetLayoutType> setLayouts)
Construct a new immutableVulkanDescriptorSetAllocateInfo
instance.- Parameters:
descriptorPool
- The value for thedescriptorPool
attributesetLayouts
- The value for thesetLayouts
attribute- Returns:
- An immutable VulkanDescriptorSetAllocateInfo instance
-
of
public static VulkanDescriptorSetAllocateInfo of(VulkanDescriptorPoolType descriptorPool, java.lang.Iterable<? extends VulkanDescriptorSetLayoutType> setLayouts)
Construct a new immutableVulkanDescriptorSetAllocateInfo
instance.- Parameters:
descriptorPool
- The value for thedescriptorPool
attributesetLayouts
- The value for thesetLayouts
attribute- Returns:
- An immutable VulkanDescriptorSetAllocateInfo instance
-
copyOf
public static VulkanDescriptorSetAllocateInfo copyOf(VulkanDescriptorSetAllocateInfoType instance)
Creates an immutable copy of aVulkanDescriptorSetAllocateInfoType
value. 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
public static VulkanDescriptorSetAllocateInfo.Builder builder()
Creates a builder forVulkanDescriptorSetAllocateInfo
.- Returns:
- A new VulkanDescriptorSetAllocateInfo builder
-
-