- java.lang.Object
-
- com.io7m.jcoronado.api.VulkanCommandPoolCreateInfo
-
- All Implemented Interfaces:
VulkanCommandPoolCreateInfoType
public final class VulkanCommandPoolCreateInfo extends java.lang.Object implements VulkanCommandPoolCreateInfoType
Structure specifying parameters of a newly created command pool.- See Also:
- "VkCommandPoolCreateInfo"
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VulkanCommandPoolCreateInfo.Builder
Builds instances of typeVulkanCommandPoolCreateInfo
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VulkanCommandPoolCreateInfo.Builder
builder()
Creates a builder forVulkanCommandPoolCreateInfo
.static VulkanCommandPoolCreateInfo
copyOf(VulkanCommandPoolCreateInfoType instance)
Creates an immutable copy of aVulkanCommandPoolCreateInfoType
value.boolean
equals(java.lang.Object another)
This instance is equal to all instances ofVulkanCommandPoolCreateInfo
that have equal attribute values.java.util.Set<VulkanCommandPoolCreateFlag>
flags()
int
hashCode()
Computes a hash code from attributes:flags
,queueFamilyIndex
.static VulkanCommandPoolCreateInfo
of(java.lang.Iterable<VulkanCommandPoolCreateFlag> flags, int queueFamilyIndex)
Construct a new immutableVulkanCommandPoolCreateInfo
instance.static VulkanCommandPoolCreateInfo
of(java.util.Set<VulkanCommandPoolCreateFlag> flags, int queueFamilyIndex)
Construct a new immutableVulkanCommandPoolCreateInfo
instance.int
queueFamilyIndex()
java.lang.String
toString()
Prints the immutable valueVulkanCommandPoolCreateInfo
with attribute values.VulkanCommandPoolCreateInfo
withFlags(VulkanCommandPoolCreateFlag... elements)
Copy the current immutable object with elements that replace the content offlags
.VulkanCommandPoolCreateInfo
withFlags(java.lang.Iterable<VulkanCommandPoolCreateFlag> elements)
Copy the current immutable object with elements that replace the content offlags
.VulkanCommandPoolCreateInfo
withQueueFamilyIndex(int value)
Copy the current immutable object by setting a value for thequeueFamilyIndex
attribute.
-
-
-
Method Detail
-
flags
public java.util.Set<VulkanCommandPoolCreateFlag> flags()
- Specified by:
flags
in interfaceVulkanCommandPoolCreateInfoType
- Returns:
- Flags specifying how the command pool will be generated.
-
queueFamilyIndex
public int queueFamilyIndex()
- Specified by:
queueFamilyIndex
in 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
public final VulkanCommandPoolCreateInfo withFlags(VulkanCommandPoolCreateFlag... 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 VulkanCommandPoolCreateInfo withFlags(java.lang.Iterable<VulkanCommandPoolCreateFlag> 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
-
withQueueFamilyIndex
public final VulkanCommandPoolCreateInfo withQueueFamilyIndex(int value)
Copy the current immutable object by setting a value for thequeueFamilyIndex
attribute. A value 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
this
object
-
equals
public boolean equals(java.lang.Object another)
This instance is equal to all instances ofVulkanCommandPoolCreateInfo
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
,queueFamilyIndex
.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueVulkanCommandPoolCreateInfo
with attribute values.- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string representation of the value
-
of
public static VulkanCommandPoolCreateInfo of(java.util.Set<VulkanCommandPoolCreateFlag> flags, int queueFamilyIndex)
Construct a new immutableVulkanCommandPoolCreateInfo
instance.- Parameters:
flags
- The value for theflags
attributequeueFamilyIndex
- The value for thequeueFamilyIndex
attribute- Returns:
- An immutable VulkanCommandPoolCreateInfo instance
-
of
public static VulkanCommandPoolCreateInfo of(java.lang.Iterable<VulkanCommandPoolCreateFlag> flags, int queueFamilyIndex)
Construct a new immutableVulkanCommandPoolCreateInfo
instance.- Parameters:
flags
- The value for theflags
attributequeueFamilyIndex
- The value for thequeueFamilyIndex
attribute- Returns:
- An immutable VulkanCommandPoolCreateInfo instance
-
copyOf
public static VulkanCommandPoolCreateInfo copyOf(VulkanCommandPoolCreateInfoType instance)
Creates an immutable copy of aVulkanCommandPoolCreateInfoType
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 VulkanCommandPoolCreateInfo instance
-
builder
public static VulkanCommandPoolCreateInfo.Builder builder()
Creates a builder forVulkanCommandPoolCreateInfo
.- Returns:
- A new VulkanCommandPoolCreateInfo builder
-
-