- java.lang.Object
-
- com.io7m.jcoronado.api.VulkanDescriptorPoolCreateInfo
-
- All Implemented Interfaces:
VulkanDescriptorPoolCreateInfoType
public final class VulkanDescriptorPoolCreateInfo extends java.lang.Object implements VulkanDescriptorPoolCreateInfoType
- See Also:
- "VkDescriptorPoolCreateInfo"
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VulkanDescriptorPoolCreateInfo.Builder
Builds instances of typeVulkanDescriptorPoolCreateInfo
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VulkanDescriptorPoolCreateInfo.Builder
builder()
Creates a builder forVulkanDescriptorPoolCreateInfo
.static VulkanDescriptorPoolCreateInfo
copyOf(VulkanDescriptorPoolCreateInfoType instance)
Creates an immutable copy of aVulkanDescriptorPoolCreateInfoType
value.boolean
equals(java.lang.Object another)
This instance is equal to all instances ofVulkanDescriptorPoolCreateInfo
that have equal attribute values.java.util.Set<VulkanDescriptorPoolCreateFlag>
flags()
int
hashCode()
Computes a hash code from attributes:flags
,maxSets
,poolSizes
.int
maxSets()
static VulkanDescriptorPoolCreateInfo
of(java.lang.Iterable<VulkanDescriptorPoolCreateFlag> flags, int maxSets, java.lang.Iterable<? extends VulkanDescriptorPoolSize> poolSizes)
Construct a new immutableVulkanDescriptorPoolCreateInfo
instance.static VulkanDescriptorPoolCreateInfo
of(java.util.Set<VulkanDescriptorPoolCreateFlag> flags, int maxSets, java.util.List<VulkanDescriptorPoolSize> poolSizes)
Construct a new immutableVulkanDescriptorPoolCreateInfo
instance.java.util.List<VulkanDescriptorPoolSize>
poolSizes()
java.lang.String
toString()
Prints the immutable valueVulkanDescriptorPoolCreateInfo
with attribute values.VulkanDescriptorPoolCreateInfo
withFlags(VulkanDescriptorPoolCreateFlag... elements)
Copy the current immutable object with elements that replace the content offlags
.VulkanDescriptorPoolCreateInfo
withFlags(java.lang.Iterable<VulkanDescriptorPoolCreateFlag> elements)
Copy the current immutable object with elements that replace the content offlags
.VulkanDescriptorPoolCreateInfo
withMaxSets(int value)
Copy the current immutable object by setting a value for themaxSets
attribute.VulkanDescriptorPoolCreateInfo
withPoolSizes(VulkanDescriptorPoolSize... elements)
Copy the current immutable object with elements that replace the content ofpoolSizes
.VulkanDescriptorPoolCreateInfo
withPoolSizes(java.lang.Iterable<? extends VulkanDescriptorPoolSize> elements)
Copy the current immutable object with elements that replace the content ofpoolSizes
.
-
-
-
Method Detail
-
flags
public java.util.Set<VulkanDescriptorPoolCreateFlag> flags()
- Specified by:
flags
in interfaceVulkanDescriptorPoolCreateInfoType
- Returns:
- The flags specifying certain supported operations on the pool.
-
maxSets
public int maxSets()
- Specified by:
maxSets
in interfaceVulkanDescriptorPoolCreateInfoType
- Returns:
- The maximum number of descriptor sets that can be allocated from the pool.
-
poolSizes
public java.util.List<VulkanDescriptorPoolSize> poolSizes()
- Specified by:
poolSizes
in interfaceVulkanDescriptorPoolCreateInfoType
- Returns:
- An array of structures each containing a descriptor type and number of descriptors of that type to be allocated in the pool.
-
withFlags
public final VulkanDescriptorPoolCreateInfo withFlags(VulkanDescriptorPoolCreateFlag... elements)
Copy the current immutable object with elements that replace the content offlags
.- Parameters:
elements
- The elements to set- Returns:
- A modified copy of
this
object
-
withFlags
public final VulkanDescriptorPoolCreateInfo withFlags(java.lang.Iterable<VulkanDescriptorPoolCreateFlag> elements)
Copy the current immutable object with elements that replace the content offlags
. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
elements
- An iterable of flags elements to set- Returns:
- A modified copy of
this
object
-
withMaxSets
public final VulkanDescriptorPoolCreateInfo withMaxSets(int value)
Copy the current immutable object by setting a value for themaxSets
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for maxSets- Returns:
- A modified copy of the
this
object
-
withPoolSizes
public final VulkanDescriptorPoolCreateInfo withPoolSizes(VulkanDescriptorPoolSize... elements)
Copy the current immutable object with elements that replace the content ofpoolSizes
.- Parameters:
elements
- The elements to set- Returns:
- A modified copy of
this
object
-
withPoolSizes
public final VulkanDescriptorPoolCreateInfo withPoolSizes(java.lang.Iterable<? extends VulkanDescriptorPoolSize> elements)
Copy the current immutable object with elements that replace the content ofpoolSizes
. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
elements
- An iterable of poolSizes 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 ofVulkanDescriptorPoolCreateInfo
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:flags
,maxSets
,poolSizes
.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueVulkanDescriptorPoolCreateInfo
with attribute values.- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string representation of the value
-
of
public static VulkanDescriptorPoolCreateInfo of(java.util.Set<VulkanDescriptorPoolCreateFlag> flags, int maxSets, java.util.List<VulkanDescriptorPoolSize> poolSizes)
Construct a new immutableVulkanDescriptorPoolCreateInfo
instance.- Parameters:
flags
- The value for theflags
attributemaxSets
- The value for themaxSets
attributepoolSizes
- The value for thepoolSizes
attribute- Returns:
- An immutable VulkanDescriptorPoolCreateInfo instance
-
of
public static VulkanDescriptorPoolCreateInfo of(java.lang.Iterable<VulkanDescriptorPoolCreateFlag> flags, int maxSets, java.lang.Iterable<? extends VulkanDescriptorPoolSize> poolSizes)
Construct a new immutableVulkanDescriptorPoolCreateInfo
instance.- Parameters:
flags
- The value for theflags
attributemaxSets
- The value for themaxSets
attributepoolSizes
- The value for thepoolSizes
attribute- Returns:
- An immutable VulkanDescriptorPoolCreateInfo instance
-
copyOf
public static VulkanDescriptorPoolCreateInfo copyOf(VulkanDescriptorPoolCreateInfoType instance)
Creates an immutable copy of aVulkanDescriptorPoolCreateInfoType
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 VulkanDescriptorPoolCreateInfo instance
-
builder
public static VulkanDescriptorPoolCreateInfo.Builder builder()
Creates a builder forVulkanDescriptorPoolCreateInfo
.- Returns:
- A new VulkanDescriptorPoolCreateInfo builder
-
-