Package org.lwjgl.vulkan
Class VkDeviceQueueCreateInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkDeviceQueueCreateInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VkDeviceQueueCreateInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Structure specifying parameters of a newly created device queue.Valid Usage
queueFamilyIndex
must be less thanpQueueFamilyPropertyCount
returned byvkGetPhysicalDeviceQueueFamilyProperties
queueCount
must be less than or equal to thequeueCount
member of theVkQueueFamilyProperties
structure, as returned byvkGetPhysicalDeviceQueueFamilyProperties
in thepQueueFamilyProperties
[queueFamilyIndex
]- Each element of
pQueuePriorities
must be between0.0
and1.0
inclusive
Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO
pNext
must beNULL
or a pointer to a valid instance ofVkDeviceQueueGlobalPriorityCreateInfoEXT
flags
must be a valid combination ofVkDeviceQueueCreateFlagBits
valuespQueuePriorities
must be a valid pointer to an array ofqueueCount
float
valuesqueueCount
must be greater than 0
See Also
Member documentation
sType
– the type of this structure.pNext
–NULL
or a pointer to an extension-specific structure.flags
– a bitmask indicating behavior of the queue.queueFamilyIndex
– an unsigned integer indicating the index of the queue family to create on this device. This index corresponds to the index of an element of thepQueueFamilyProperties
array that was returned byvkGetPhysicalDeviceQueueFamilyProperties
.queueCount
– an unsigned integer specifying the number of queues to create in the queue family indicated byqueueFamilyIndex
.pQueuePriorities
– an array ofqueueCount
normalized floating point values, specifying priorities of work that will be submitted to each created queue. See Queue Priority for more information.
Layout
struct VkDeviceQueueCreateInfo { VkStructureType sType; void const * pNext; VkDeviceQueueCreateFlags flags; uint32_t queueFamilyIndex; uint32_t queueCount; float const * pQueuePriorities; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkDeviceQueueCreateInfo.Buffer
An array ofVkDeviceQueueCreateInfo
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
FLAGS
PNEXT
PQUEUEPRIORITIES
QUEUECOUNT
QUEUEFAMILYINDEXThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
STYPE
The struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkDeviceQueueCreateInfo(java.nio.ByteBuffer container)
Creates aVkDeviceQueueCreateInfo
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkDeviceQueueCreateInfo
calloc()
Returns a newVkDeviceQueueCreateInfo
instance allocated withmemCalloc
.static VkDeviceQueueCreateInfo.Buffer
calloc(int capacity)
Returns a newVkDeviceQueueCreateInfo.Buffer
instance allocated withmemCalloc
.static VkDeviceQueueCreateInfo
callocStack()
Returns a newVkDeviceQueueCreateInfo
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkDeviceQueueCreateInfo.Buffer
callocStack(int capacity)
Returns a newVkDeviceQueueCreateInfo.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkDeviceQueueCreateInfo.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceQueueCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkDeviceQueueCreateInfo
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceQueueCreateInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkDeviceQueueCreateInfo
create()
Returns a newVkDeviceQueueCreateInfo
instance allocated withBufferUtils
.static VkDeviceQueueCreateInfo.Buffer
create(int capacity)
Returns a newVkDeviceQueueCreateInfo.Buffer
instance allocated withBufferUtils
.static VkDeviceQueueCreateInfo
create(long address)
Returns a newVkDeviceQueueCreateInfo
instance for the specified memory address.static VkDeviceQueueCreateInfo.Buffer
create(long address, int capacity)
Create aVkDeviceQueueCreateInfo.Buffer
instance at the specified memory.static VkDeviceQueueCreateInfo
createSafe(long address)
static VkDeviceQueueCreateInfo.Buffer
createSafe(long address, int capacity)
int
flags()
Returns the value of theflags
field.VkDeviceQueueCreateInfo
flags(int value)
Sets the specified value to theflags
field.static VkDeviceQueueCreateInfo
malloc()
Returns a newVkDeviceQueueCreateInfo
instance allocated withmemAlloc
.static VkDeviceQueueCreateInfo.Buffer
malloc(int capacity)
Returns a newVkDeviceQueueCreateInfo.Buffer
instance allocated withmemAlloc
.static VkDeviceQueueCreateInfo
mallocStack()
Returns a newVkDeviceQueueCreateInfo
instance allocated on the thread-localMemoryStack
.static VkDeviceQueueCreateInfo.Buffer
mallocStack(int capacity)
Returns a newVkDeviceQueueCreateInfo.Buffer
instance allocated on the thread-localMemoryStack
.static VkDeviceQueueCreateInfo.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceQueueCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
.static VkDeviceQueueCreateInfo
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceQueueCreateInfo
instance allocated on the specifiedMemoryStack
.static int
nflags(long struct)
Unsafe version offlags()
.static void
nflags(long struct, int value)
Unsafe version offlags
.static long
npNext(long struct)
Unsafe version ofpNext()
.static void
npNext(long struct, long value)
Unsafe version ofpNext
.static java.nio.FloatBuffer
npQueuePriorities(long struct)
Unsafe version ofpQueuePriorities
.static void
npQueuePriorities(long struct, java.nio.FloatBuffer value)
Unsafe version ofpQueuePriorities
.static int
nqueueCount(long struct)
Unsafe version ofqueueCount()
.static void
nqueueCount(long struct, int value)
Sets the specified value to thequeueCount
field of the specifiedstruct
.static int
nqueueFamilyIndex(long struct)
Unsafe version ofqueueFamilyIndex()
.static void
nqueueFamilyIndex(long struct, int value)
Unsafe version ofqueueFamilyIndex
.static int
nsType(long struct)
Unsafe version ofsType()
.static void
nsType(long struct, int value)
Unsafe version ofsType
.long
pNext()
Returns the value of thepNext
field.VkDeviceQueueCreateInfo
pNext(long value)
Sets the specified value to thepNext
field.java.nio.FloatBuffer
pQueuePriorities()
Returns aFloatBuffer
view of the data pointed to by thepQueuePriorities
field.VkDeviceQueueCreateInfo
pQueuePriorities(java.nio.FloatBuffer value)
Sets the address of the specifiedFloatBuffer
to thepQueuePriorities
field.int
queueCount()
Returns the value of thequeueCount
field.int
queueFamilyIndex()
Returns the value of thequeueFamilyIndex
field.VkDeviceQueueCreateInfo
queueFamilyIndex(int value)
Sets the specified value to thequeueFamilyIndex
field.VkDeviceQueueCreateInfo
set(int sType, long pNext, int flags, int queueFamilyIndex, java.nio.FloatBuffer pQueuePriorities)
Initializes this struct with the specified values.VkDeviceQueueCreateInfo
set(VkDeviceQueueCreateInfo src)
Copies the specified struct data to this struct.int
sizeof()
int
sType()
Returns the value of thesType
field.VkDeviceQueueCreateInfo
sType(int value)
Sets the specified value to thesType
field.static void
validate(long struct)
Validates pointer members that should not beNULL
.static void
validate(long array, int count)
Callsvalidate(long)
for each struct contained in the specified struct array.
-
-
-
Constructor Detail
-
VkDeviceQueueCreateInfo
public VkDeviceQueueCreateInfo(java.nio.ByteBuffer container)
Creates aVkDeviceQueueCreateInfo
instance at the current position of the specifiedByteBuffer
container. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesType
field.
-
pNext
public long pNext()
Returns the value of thepNext
field.
-
flags
public int flags()
Returns the value of theflags
field.
-
queueFamilyIndex
public int queueFamilyIndex()
Returns the value of thequeueFamilyIndex
field.
-
queueCount
public int queueCount()
Returns the value of thequeueCount
field.
-
pQueuePriorities
public java.nio.FloatBuffer pQueuePriorities()
Returns aFloatBuffer
view of the data pointed to by thepQueuePriorities
field.
-
sType
public VkDeviceQueueCreateInfo sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkDeviceQueueCreateInfo pNext(long value)
Sets the specified value to thepNext
field.
-
flags
public VkDeviceQueueCreateInfo flags(int value)
Sets the specified value to theflags
field.
-
queueFamilyIndex
public VkDeviceQueueCreateInfo queueFamilyIndex(int value)
Sets the specified value to thequeueFamilyIndex
field.
-
pQueuePriorities
public VkDeviceQueueCreateInfo pQueuePriorities(java.nio.FloatBuffer value)
Sets the address of the specifiedFloatBuffer
to thepQueuePriorities
field.
-
set
public VkDeviceQueueCreateInfo set(int sType, long pNext, int flags, int queueFamilyIndex, java.nio.FloatBuffer pQueuePriorities)
Initializes this struct with the specified values.
-
set
public VkDeviceQueueCreateInfo set(VkDeviceQueueCreateInfo src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkDeviceQueueCreateInfo malloc()
Returns a newVkDeviceQueueCreateInfo
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkDeviceQueueCreateInfo calloc()
Returns a newVkDeviceQueueCreateInfo
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkDeviceQueueCreateInfo create()
Returns a newVkDeviceQueueCreateInfo
instance allocated withBufferUtils
.
-
create
public static VkDeviceQueueCreateInfo create(long address)
Returns a newVkDeviceQueueCreateInfo
instance for the specified memory address.
-
createSafe
@Nullable public static VkDeviceQueueCreateInfo createSafe(long address)
-
malloc
public static VkDeviceQueueCreateInfo.Buffer malloc(int capacity)
Returns a newVkDeviceQueueCreateInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkDeviceQueueCreateInfo.Buffer calloc(int capacity)
Returns a newVkDeviceQueueCreateInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkDeviceQueueCreateInfo.Buffer create(int capacity)
Returns a newVkDeviceQueueCreateInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkDeviceQueueCreateInfo.Buffer create(long address, int capacity)
Create aVkDeviceQueueCreateInfo.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkDeviceQueueCreateInfo.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkDeviceQueueCreateInfo mallocStack()
Returns a newVkDeviceQueueCreateInfo
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkDeviceQueueCreateInfo callocStack()
Returns a newVkDeviceQueueCreateInfo
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkDeviceQueueCreateInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceQueueCreateInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkDeviceQueueCreateInfo callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceQueueCreateInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkDeviceQueueCreateInfo.Buffer mallocStack(int capacity)
Returns a newVkDeviceQueueCreateInfo.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkDeviceQueueCreateInfo.Buffer callocStack(int capacity)
Returns a newVkDeviceQueueCreateInfo.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkDeviceQueueCreateInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceQueueCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkDeviceQueueCreateInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceQueueCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nsType
public static int nsType(long struct)
Unsafe version ofsType()
.
-
npNext
public static long npNext(long struct)
Unsafe version ofpNext()
.
-
nflags
public static int nflags(long struct)
Unsafe version offlags()
.
-
nqueueFamilyIndex
public static int nqueueFamilyIndex(long struct)
Unsafe version ofqueueFamilyIndex()
.
-
nqueueCount
public static int nqueueCount(long struct)
Unsafe version ofqueueCount()
.
-
npQueuePriorities
public static java.nio.FloatBuffer npQueuePriorities(long struct)
Unsafe version ofpQueuePriorities
.
-
nsType
public static void nsType(long struct, int value)
Unsafe version ofsType
.
-
npNext
public static void npNext(long struct, long value)
Unsafe version ofpNext
.
-
nflags
public static void nflags(long struct, int value)
Unsafe version offlags
.
-
nqueueFamilyIndex
public static void nqueueFamilyIndex(long struct, int value)
Unsafe version ofqueueFamilyIndex
.
-
nqueueCount
public static void nqueueCount(long struct, int value)
Sets the specified value to thequeueCount
field of the specifiedstruct
.
-
npQueuePriorities
public static void npQueuePriorities(long struct, java.nio.FloatBuffer value)
Unsafe version ofpQueuePriorities
.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-
validate
public static void validate(long array, int count)
Callsvalidate(long)
for each struct contained in the specified struct array.- Parameters:
array
- the struct array to validatecount
- the number of structs inarray
-
-