Class VulkanCommandPoolCreateInfo
java.lang.Object
com.io7m.jcoronado.api.VulkanCommandPoolCreateInfo
- All Implemented Interfaces:
VulkanCommandPoolCreateInfoType
public final class VulkanCommandPoolCreateInfo
extends Object
implements VulkanCommandPoolCreateInfoType
Structure specifying parameters of a newly created command pool.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeVulkanCommandPoolCreateInfo. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forVulkanCommandPoolCreateInfo.static VulkanCommandPoolCreateInfocopyOf(VulkanCommandPoolCreateInfoType instance) Creates an immutable copy of aVulkanCommandPoolCreateInfoTypevalue.booleanThis instance is equal to all instances ofVulkanCommandPoolCreateInfothat have equal attribute values.flags()inthashCode()Computes a hash code from attributes:flags,queueFamilyIndex.static VulkanCommandPoolCreateInfoof(Iterable<VulkanCommandPoolCreateFlag> flags, VulkanQueueFamilyIndex queueFamilyIndex) Construct a new immutableVulkanCommandPoolCreateInfoinstance.static VulkanCommandPoolCreateInfoof(Set<VulkanCommandPoolCreateFlag> flags, VulkanQueueFamilyIndex queueFamilyIndex) Construct a new immutableVulkanCommandPoolCreateInfoinstance.toString()Prints the immutable valueVulkanCommandPoolCreateInfowith attribute values.withFlags(VulkanCommandPoolCreateFlag... elements) Copy the current immutable object with elements that replace the content offlags.withFlags(Iterable<VulkanCommandPoolCreateFlag> elements) Copy the current immutable object with elements that replace the content offlags.Copy the current immutable object by setting a value for thequeueFamilyIndexattribute.
-
Method Details
-
flags
- Specified by:
flagsin interfaceVulkanCommandPoolCreateInfoType- Returns:
- Flags specifying how the command pool will be generated.
-
queueFamilyIndex
- Specified by:
queueFamilyIndexin interfaceVulkanCommandPoolCreateInfoType- Returns:
- A queue family as described in section Queue Family Properties. All command buffers allocated from this command pool must be submitted on queues from the same queue family.
-
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
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
-
withQueueFamilyIndex
Copy the current immutable object by setting a value for thequeueFamilyIndexattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for queueFamilyIndex- Returns:
- A modified copy of the
thisobject
-
equals
-
hashCode
-
toString
-
of
public static VulkanCommandPoolCreateInfo of(Set<VulkanCommandPoolCreateFlag> flags, VulkanQueueFamilyIndex queueFamilyIndex) Construct a new immutableVulkanCommandPoolCreateInfoinstance.- Parameters:
flags- The value for theflagsattributequeueFamilyIndex- The value for thequeueFamilyIndexattribute- Returns:
- An immutable VulkanCommandPoolCreateInfo instance
-
of
public static VulkanCommandPoolCreateInfo of(Iterable<VulkanCommandPoolCreateFlag> flags, VulkanQueueFamilyIndex queueFamilyIndex) Construct a new immutableVulkanCommandPoolCreateInfoinstance.- Parameters:
flags- The value for theflagsattributequeueFamilyIndex- The value for thequeueFamilyIndexattribute- Returns:
- An immutable VulkanCommandPoolCreateInfo instance
-
copyOf
Creates an immutable copy of aVulkanCommandPoolCreateInfoTypevalue. 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 VulkanCommandPoolCreateInfo instance
-
builder
Creates a builder forVulkanCommandPoolCreateInfo.VulkanCommandPoolCreateInfo.builder() .addFlags|addAllFlags(com.io7m.jcoronado.api.VulkanCommandPoolCreateFlag) //flagselements .setQueueFamilyIndex(com.io7m.jcoronado.api.VulkanQueueFamilyIndex) // requiredqueueFamilyIndex.build();- Returns:
- A new VulkanCommandPoolCreateInfo builder
-