Module com.io7m.jcoronado.api
Package com.io7m.jcoronado.api
Class VulkanLogicalDeviceQueueCreateInfo
- java.lang.Object
-
- com.io7m.jcoronado.api.VulkanLogicalDeviceQueueCreateInfo
-
- All Implemented Interfaces:
VulkanLogicalDeviceQueueCreateInfoType
public final class VulkanLogicalDeviceQueueCreateInfo extends java.lang.Object implements VulkanLogicalDeviceQueueCreateInfoType
The information required to create a queue on a device.- See Also:
- "VkDeviceQueueCreateInfo"
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VulkanLogicalDeviceQueueCreateInfo.Builder
Builds instances of typeVulkanLogicalDeviceQueueCreateInfo
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VulkanLogicalDeviceQueueCreateInfo.Builder
builder()
Creates a builder forVulkanLogicalDeviceQueueCreateInfo
.static VulkanLogicalDeviceQueueCreateInfo
copyOf(VulkanLogicalDeviceQueueCreateInfoType instance)
Creates an immutable copy of aVulkanLogicalDeviceQueueCreateInfoType
value.boolean
equals(java.lang.Object another)
This instance is equal to all instances ofVulkanLogicalDeviceQueueCreateInfo
that have equal attribute values.java.util.Set<VulkanDeviceQueueCreationFlag>
flags()
int
hashCode()
Computes a hash code from attributes:flags
,queueFamilyIndex
,queueCount
,queuePriorities
.static VulkanLogicalDeviceQueueCreateInfo
of(java.lang.Iterable<VulkanDeviceQueueCreationFlag> flags, int queueFamilyIndex, int queueCount, float[] queuePriorities)
Construct a new immutableVulkanLogicalDeviceQueueCreateInfo
instance.static VulkanLogicalDeviceQueueCreateInfo
of(java.util.Set<VulkanDeviceQueueCreationFlag> flags, int queueFamilyIndex, int queueCount, float[] queuePriorities)
Construct a new immutableVulkanLogicalDeviceQueueCreateInfo
instance.int
queueCount()
int
queueFamilyIndex()
float[]
queuePriorities()
java.lang.String
toString()
Prints the immutable valueVulkanLogicalDeviceQueueCreateInfo
with attribute values.VulkanLogicalDeviceQueueCreateInfo
withFlags(VulkanDeviceQueueCreationFlag... elements)
Copy the current immutable object with elements that replace the content offlags
.VulkanLogicalDeviceQueueCreateInfo
withFlags(java.lang.Iterable<VulkanDeviceQueueCreationFlag> elements)
Copy the current immutable object with elements that replace the content offlags
.VulkanLogicalDeviceQueueCreateInfo
withQueueCount(int value)
Copy the current immutable object by setting a value for thequeueCount
attribute.VulkanLogicalDeviceQueueCreateInfo
withQueueFamilyIndex(int value)
Copy the current immutable object by setting a value for thequeueFamilyIndex
attribute.VulkanLogicalDeviceQueueCreateInfo
withQueuePriorities(float... elements)
Copy the current immutable object with elements that replace the content ofqueuePriorities
.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.io7m.jcoronado.api.VulkanLogicalDeviceQueueCreateInfoType
checkPreconditions
-
-
-
-
Method Detail
-
flags
public java.util.Set<VulkanDeviceQueueCreationFlag> flags()
- Specified by:
flags
in interfaceVulkanLogicalDeviceQueueCreateInfoType
- Returns:
- The flags used to create the queue(s)
-
queueFamilyIndex
public int queueFamilyIndex()
- Specified by:
queueFamilyIndex
in interfaceVulkanLogicalDeviceQueueCreateInfoType
- Returns:
- The queue family
-
queueCount
public int queueCount()
- Specified by:
queueCount
in interfaceVulkanLogicalDeviceQueueCreateInfoType
- Returns:
- The number of queues to create
-
queuePriorities
public float[] queuePriorities()
- Specified by:
queuePriorities
in interfaceVulkanLogicalDeviceQueueCreateInfoType
- Returns:
- The priorities of the queues
-
withFlags
public final VulkanLogicalDeviceQueueCreateInfo withFlags(VulkanDeviceQueueCreationFlag... 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 VulkanLogicalDeviceQueueCreateInfo withFlags(java.lang.Iterable<VulkanDeviceQueueCreationFlag> 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 VulkanLogicalDeviceQueueCreateInfo 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
-
withQueueCount
public final VulkanLogicalDeviceQueueCreateInfo withQueueCount(int value)
Copy the current immutable object by setting a value for thequeueCount
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for queueCount- Returns:
- A modified copy of the
this
object
-
withQueuePriorities
public final VulkanLogicalDeviceQueueCreateInfo withQueuePriorities(float... elements)
Copy the current immutable object with elements that replace the content ofqueuePriorities
. The array is cloned before being saved as attribute values.- Parameters:
elements
- The non-null elements for queuePriorities- Returns:
- A modified copy of
this
object
-
equals
public boolean equals(java.lang.Object another)
This instance is equal to all instances ofVulkanLogicalDeviceQueueCreateInfo
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
,queueCount
,queuePriorities
.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueVulkanLogicalDeviceQueueCreateInfo
with attribute values.- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string representation of the value
-
of
public static VulkanLogicalDeviceQueueCreateInfo of(java.util.Set<VulkanDeviceQueueCreationFlag> flags, int queueFamilyIndex, int queueCount, float[] queuePriorities)
Construct a new immutableVulkanLogicalDeviceQueueCreateInfo
instance.- Parameters:
flags
- The value for theflags
attributequeueFamilyIndex
- The value for thequeueFamilyIndex
attributequeueCount
- The value for thequeueCount
attributequeuePriorities
- The value for thequeuePriorities
attribute- Returns:
- An immutable VulkanLogicalDeviceQueueCreateInfo instance
-
of
public static VulkanLogicalDeviceQueueCreateInfo of(java.lang.Iterable<VulkanDeviceQueueCreationFlag> flags, int queueFamilyIndex, int queueCount, float[] queuePriorities)
Construct a new immutableVulkanLogicalDeviceQueueCreateInfo
instance.- Parameters:
flags
- The value for theflags
attributequeueFamilyIndex
- The value for thequeueFamilyIndex
attributequeueCount
- The value for thequeueCount
attributequeuePriorities
- The value for thequeuePriorities
attribute- Returns:
- An immutable VulkanLogicalDeviceQueueCreateInfo instance
-
copyOf
public static VulkanLogicalDeviceQueueCreateInfo copyOf(VulkanLogicalDeviceQueueCreateInfoType instance)
Creates an immutable copy of aVulkanLogicalDeviceQueueCreateInfoType
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 VulkanLogicalDeviceQueueCreateInfo instance
-
builder
public static VulkanLogicalDeviceQueueCreateInfo.Builder builder()
Creates a builder forVulkanLogicalDeviceQueueCreateInfo
.- Returns:
- A new VulkanLogicalDeviceQueueCreateInfo builder
-
-