Class VulkanDescriptorPoolCreateInfo
java.lang.Object
com.io7m.jcoronado.api.VulkanDescriptorPoolCreateInfo
- All Implemented Interfaces:
VulkanDescriptorPoolCreateInfoType
public final class VulkanDescriptorPoolCreateInfo
extends Object
implements VulkanDescriptorPoolCreateInfoType
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeVulkanDescriptorPoolCreateInfo. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forVulkanDescriptorPoolCreateInfo.copyOf(VulkanDescriptorPoolCreateInfoType instance) Creates an immutable copy of aVulkanDescriptorPoolCreateInfoTypevalue.booleanThis instance is equal to all instances ofVulkanDescriptorPoolCreateInfothat have equal attribute values.flags()inthashCode()Computes a hash code from attributes:flags,maxSets,poolSizes.intmaxSets()of(Iterable<VulkanDescriptorPoolCreateFlag> flags, int maxSets, Iterable<? extends VulkanDescriptorPoolSize> poolSizes) Construct a new immutableVulkanDescriptorPoolCreateInfoinstance.of(Set<VulkanDescriptorPoolCreateFlag> flags, int maxSets, List<VulkanDescriptorPoolSize> poolSizes) Construct a new immutableVulkanDescriptorPoolCreateInfoinstance.toString()Prints the immutable valueVulkanDescriptorPoolCreateInfowith attribute values.withFlags(VulkanDescriptorPoolCreateFlag... elements) Copy the current immutable object with elements that replace the content offlags.withFlags(Iterable<VulkanDescriptorPoolCreateFlag> elements) Copy the current immutable object with elements that replace the content offlags.withMaxSets(int value) Copy the current immutable object by setting a value for themaxSetsattribute.withPoolSizes(VulkanDescriptorPoolSize... elements) Copy the current immutable object with elements that replace the content ofpoolSizes.withPoolSizes(Iterable<? extends VulkanDescriptorPoolSize> elements) Copy the current immutable object with elements that replace the content ofpoolSizes.
-
Method Details
-
flags
- Specified by:
flagsin interfaceVulkanDescriptorPoolCreateInfoType- Returns:
- The flags specifying certain supported operations on the pool.
-
maxSets
public int maxSets()- Specified by:
maxSetsin interfaceVulkanDescriptorPoolCreateInfoType- Returns:
- The maximum number of descriptor sets that can be allocated from the pool.
-
poolSizes
- Specified by:
poolSizesin 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
Copy the current immutable object with elements that replace the content offlags.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withFlags
public final VulkanDescriptorPoolCreateInfo withFlags(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
thisobject
-
withMaxSets
Copy the current immutable object by setting a value for themaxSetsattribute. 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
thisobject
-
withPoolSizes
Copy the current immutable object with elements that replace the content ofpoolSizes.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withPoolSizes
public final VulkanDescriptorPoolCreateInfo withPoolSizes(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
thisobject
-
equals
-
hashCode
-
toString
-
of
public static VulkanDescriptorPoolCreateInfo of(Set<VulkanDescriptorPoolCreateFlag> flags, int maxSets, List<VulkanDescriptorPoolSize> poolSizes) Construct a new immutableVulkanDescriptorPoolCreateInfoinstance.- Parameters:
flags- The value for theflagsattributemaxSets- The value for themaxSetsattributepoolSizes- The value for thepoolSizesattribute- Returns:
- An immutable VulkanDescriptorPoolCreateInfo instance
-
of
public static VulkanDescriptorPoolCreateInfo of(Iterable<VulkanDescriptorPoolCreateFlag> flags, int maxSets, Iterable<? extends VulkanDescriptorPoolSize> poolSizes) Construct a new immutableVulkanDescriptorPoolCreateInfoinstance.- Parameters:
flags- The value for theflagsattributemaxSets- The value for themaxSetsattributepoolSizes- The value for thepoolSizesattribute- Returns:
- An immutable VulkanDescriptorPoolCreateInfo instance
-
copyOf
Creates an immutable copy of aVulkanDescriptorPoolCreateInfoTypevalue. 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
Creates a builder forVulkanDescriptorPoolCreateInfo.VulkanDescriptorPoolCreateInfo.builder() .addFlags|addAllFlags(com.io7m.jcoronado.api.VulkanDescriptorPoolCreateFlag) //flagselements .setMaxSets(int) // requiredmaxSets.addPoolSizes|addAllPoolSizes(VulkanDescriptorPoolSize) //poolSizeselements .build();- Returns:
- A new VulkanDescriptorPoolCreateInfo builder
-