Module com.io7m.jcoronado.api
Package com.io7m.jcoronado.api
Class VulkanLogicalDeviceQueueCreateInfo.Builder
- java.lang.Object
-
- com.io7m.jcoronado.api.VulkanLogicalDeviceQueueCreateInfo.Builder
-
- Enclosing class:
- VulkanLogicalDeviceQueueCreateInfo
public static final class VulkanLogicalDeviceQueueCreateInfo.Builder extends java.lang.Object
Builds instances of typeVulkanLogicalDeviceQueueCreateInfo
. Initialize attributes and then invoke thebuild()
method to create an immutable instance.Builder
is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.
-
-
Method Summary
-
-
-
Method Detail
-
from
public final VulkanLogicalDeviceQueueCreateInfo.Builder from(VulkanLogicalDeviceQueueCreateInfoType instance)
Fill a builder with attribute values from the providedVulkanLogicalDeviceQueueCreateInfoType
instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
addFlags
public final VulkanLogicalDeviceQueueCreateInfo.Builder addFlags(VulkanDeviceQueueCreationFlag element)
Adds one element toflags
set.- Parameters:
element
- A flags element- Returns:
this
builder for use in a chained invocation
-
addFlags
public final VulkanLogicalDeviceQueueCreateInfo.Builder addFlags(VulkanDeviceQueueCreationFlag... elements)
Adds elements toflags
set.- Parameters:
elements
- An array of flags elements- Returns:
this
builder for use in a chained invocation
-
setFlags
public final VulkanLogicalDeviceQueueCreateInfo.Builder setFlags(java.lang.Iterable<VulkanDeviceQueueCreationFlag> elements)
Sets or replaces all elements forflags
set.- Parameters:
elements
- An iterable of flags elements- Returns:
this
builder for use in a chained invocation
-
addAllFlags
public final VulkanLogicalDeviceQueueCreateInfo.Builder addAllFlags(java.lang.Iterable<VulkanDeviceQueueCreationFlag> elements)
Adds elements toflags
set.- Parameters:
elements
- An iterable of flags elements- Returns:
this
builder for use in a chained invocation
-
setQueueFamilyIndex
public final VulkanLogicalDeviceQueueCreateInfo.Builder setQueueFamilyIndex(int queueFamilyIndex)
Initializes the value for thequeueFamilyIndex
attribute.- Parameters:
queueFamilyIndex
- The value for queueFamilyIndex- Returns:
this
builder for use in a chained invocation
-
setQueueCount
public final VulkanLogicalDeviceQueueCreateInfo.Builder setQueueCount(int queueCount)
Initializes the value for thequeueCount
attribute.- Parameters:
queueCount
- The value for queueCount- Returns:
this
builder for use in a chained invocation
-
setQueuePriorities
public final VulkanLogicalDeviceQueueCreateInfo.Builder setQueuePriorities(float... queuePriorities)
Initializes the value for thequeuePriorities
attribute.- Parameters:
queuePriorities
- The elements for queuePriorities- Returns:
this
builder for use in a chained invocation
-
build
public VulkanLogicalDeviceQueueCreateInfo build()
Builds a newVulkanLogicalDeviceQueueCreateInfo
.- Returns:
- An immutable instance of VulkanLogicalDeviceQueueCreateInfo
- Throws:
java.lang.IllegalStateException
- if any required attributes are missing
-
-