public class VkDeviceQueueCreateInfo
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
queueFamilyIndex must be less than pQueueFamilyPropertyCount returned by vkGetPhysicalDeviceQueueFamilyPropertiesqueueCount must be less than or equal to the queueCount member of the VkQueueFamilyProperties structure, as returned by vkGetPhysicalDeviceQueueFamilyProperties in the pQueueFamilyProperties[queueFamilyIndex]pQueuePriorities must be between 0.0 and 1.0 inclusivesType must be STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFOpNext must be NULL or a pointer to a valid instance of VkDeviceQueueGlobalPriorityCreateInfoEXTflags must be a valid combination of VkDeviceQueueCreateFlagBits valuespQueuePriorities must be a valid pointer to an array of queueCount float valuesqueueCount must be greater than 0sType – 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 the pQueueFamilyProperties array that was returned by vkGetPhysicalDeviceQueueFamilyProperties.queueCount – an unsigned integer specifying the number of queues to create in the queue family indicated by queueFamilyIndex.pQueuePriorities – a pointer to an array of queueCount normalized floating point values, specifying priorities of work that will be submitted to each created queue. See Queue Priority for more information.
struct VkDeviceQueueCreateInfo {
VkStructureType sType;
void const * pNext;
VkDeviceQueueCreateFlags flags;
uint32_t queueFamilyIndex;
uint32_t queueCount;
float const * pQueuePriorities;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkDeviceQueueCreateInfo.Buffer
An array of
VkDeviceQueueCreateInfo structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
FLAGS
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
PQUEUEPRIORITIES
The struct member offsets.
|
static int |
QUEUECOUNT
The struct member offsets.
|
static int |
QUEUEFAMILYINDEX
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkDeviceQueueCreateInfo(java.nio.ByteBuffer container)
Creates a
VkDeviceQueueCreateInfo instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkDeviceQueueCreateInfo |
calloc()
Returns a new
VkDeviceQueueCreateInfo instance allocated with memCalloc. |
static VkDeviceQueueCreateInfo.Buffer |
calloc(int capacity)
Returns a new
VkDeviceQueueCreateInfo.Buffer instance allocated with memCalloc. |
static VkDeviceQueueCreateInfo |
callocStack()
Returns a new
VkDeviceQueueCreateInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDeviceQueueCreateInfo.Buffer |
callocStack(int capacity)
Returns a new
VkDeviceQueueCreateInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDeviceQueueCreateInfo.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDeviceQueueCreateInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDeviceQueueCreateInfo |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDeviceQueueCreateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDeviceQueueCreateInfo |
create()
Returns a new
VkDeviceQueueCreateInfo instance allocated with BufferUtils. |
static VkDeviceQueueCreateInfo.Buffer |
create(int capacity)
Returns a new
VkDeviceQueueCreateInfo.Buffer instance allocated with BufferUtils. |
static VkDeviceQueueCreateInfo |
create(long address)
Returns a new
VkDeviceQueueCreateInfo instance for the specified memory address. |
static VkDeviceQueueCreateInfo.Buffer |
create(long address,
int capacity)
Create a
VkDeviceQueueCreateInfo.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 the
flags field. |
VkDeviceQueueCreateInfo |
flags(int value)
Sets the specified value to the
flags field. |
static VkDeviceQueueCreateInfo |
malloc()
Returns a new
VkDeviceQueueCreateInfo instance allocated with memAlloc. |
static VkDeviceQueueCreateInfo.Buffer |
malloc(int capacity)
Returns a new
VkDeviceQueueCreateInfo.Buffer instance allocated with memAlloc. |
static VkDeviceQueueCreateInfo |
mallocStack()
Returns a new
VkDeviceQueueCreateInfo instance allocated on the thread-local MemoryStack. |
static VkDeviceQueueCreateInfo.Buffer |
mallocStack(int capacity)
Returns a new
VkDeviceQueueCreateInfo.Buffer instance allocated on the thread-local MemoryStack. |
static VkDeviceQueueCreateInfo.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDeviceQueueCreateInfo.Buffer instance allocated on the specified MemoryStack. |
static VkDeviceQueueCreateInfo |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDeviceQueueCreateInfo instance allocated on the specified MemoryStack. |
static int |
nflags(long struct)
Unsafe version of
flags(). |
static void |
nflags(long struct,
int value)
Unsafe version of
flags. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static java.nio.FloatBuffer |
npQueuePriorities(long struct)
Unsafe version of
pQueuePriorities. |
static void |
npQueuePriorities(long struct,
java.nio.FloatBuffer value)
Unsafe version of
pQueuePriorities. |
static int |
nqueueCount(long struct)
Unsafe version of
queueCount(). |
static void |
nqueueCount(long struct,
int value)
Sets the specified value to the
queueCount field of the specified struct. |
static int |
nqueueFamilyIndex(long struct)
Unsafe version of
queueFamilyIndex(). |
static void |
nqueueFamilyIndex(long struct,
int value)
Unsafe version of
queueFamilyIndex. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
long |
pNext()
Returns the value of the
pNext field. |
VkDeviceQueueCreateInfo |
pNext(long value)
Sets the specified value to the
pNext field. |
java.nio.FloatBuffer |
pQueuePriorities()
Returns a
FloatBuffer view of the data pointed to by the pQueuePriorities field. |
VkDeviceQueueCreateInfo |
pQueuePriorities(java.nio.FloatBuffer value)
Sets the address of the specified
FloatBuffer to the pQueuePriorities field. |
int |
queueCount()
Returns the value of the
queueCount field. |
int |
queueFamilyIndex()
Returns the value of the
queueFamilyIndex field. |
VkDeviceQueueCreateInfo |
queueFamilyIndex(int value)
Sets the specified value to the
queueFamilyIndex 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 the
sType field. |
VkDeviceQueueCreateInfo |
sType(int value)
Sets the specified value to the
sType field. |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int FLAGS
public static final int QUEUEFAMILYINDEX
public static final int QUEUECOUNT
public static final int PQUEUEPRIORITIES
public VkDeviceQueueCreateInfo(java.nio.ByteBuffer container)
VkDeviceQueueCreateInfo instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int sType()
sType field.public long pNext()
pNext field.public int flags()
flags field.public int queueFamilyIndex()
queueFamilyIndex field.public int queueCount()
queueCount field.public java.nio.FloatBuffer pQueuePriorities()
FloatBuffer view of the data pointed to by the pQueuePriorities field.public VkDeviceQueueCreateInfo sType(int value)
sType field.public VkDeviceQueueCreateInfo pNext(long value)
pNext field.public VkDeviceQueueCreateInfo flags(int value)
flags field.public VkDeviceQueueCreateInfo queueFamilyIndex(int value)
queueFamilyIndex field.public VkDeviceQueueCreateInfo pQueuePriorities(java.nio.FloatBuffer value)
FloatBuffer to the pQueuePriorities field.public VkDeviceQueueCreateInfo set(int sType, long pNext, int flags, int queueFamilyIndex, java.nio.FloatBuffer pQueuePriorities)
public VkDeviceQueueCreateInfo set(VkDeviceQueueCreateInfo src)
src - the source structpublic static VkDeviceQueueCreateInfo malloc()
VkDeviceQueueCreateInfo instance allocated with memAlloc. The instance must be explicitly freed.public static VkDeviceQueueCreateInfo calloc()
VkDeviceQueueCreateInfo instance allocated with memCalloc. The instance must be explicitly freed.public static VkDeviceQueueCreateInfo create()
VkDeviceQueueCreateInfo instance allocated with BufferUtils.public static VkDeviceQueueCreateInfo create(long address)
VkDeviceQueueCreateInfo instance for the specified memory address.@Nullable public static VkDeviceQueueCreateInfo createSafe(long address)
public static VkDeviceQueueCreateInfo.Buffer malloc(int capacity)
VkDeviceQueueCreateInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDeviceQueueCreateInfo.Buffer calloc(int capacity)
VkDeviceQueueCreateInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDeviceQueueCreateInfo.Buffer create(int capacity)
VkDeviceQueueCreateInfo.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkDeviceQueueCreateInfo.Buffer create(long address, int capacity)
VkDeviceQueueCreateInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkDeviceQueueCreateInfo.Buffer createSafe(long address, int capacity)
public static VkDeviceQueueCreateInfo mallocStack()
VkDeviceQueueCreateInfo instance allocated on the thread-local MemoryStack.public static VkDeviceQueueCreateInfo callocStack()
VkDeviceQueueCreateInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkDeviceQueueCreateInfo mallocStack(org.lwjgl.system.MemoryStack stack)
VkDeviceQueueCreateInfo instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkDeviceQueueCreateInfo callocStack(org.lwjgl.system.MemoryStack stack)
VkDeviceQueueCreateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkDeviceQueueCreateInfo.Buffer mallocStack(int capacity)
VkDeviceQueueCreateInfo.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkDeviceQueueCreateInfo.Buffer callocStack(int capacity)
VkDeviceQueueCreateInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkDeviceQueueCreateInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDeviceQueueCreateInfo.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkDeviceQueueCreateInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDeviceQueueCreateInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static int nflags(long struct)
flags().public static int nqueueFamilyIndex(long struct)
queueFamilyIndex().public static int nqueueCount(long struct)
queueCount().public static java.nio.FloatBuffer npQueuePriorities(long struct)
pQueuePriorities.public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nflags(long struct,
int value)
flags.public static void nqueueFamilyIndex(long struct,
int value)
queueFamilyIndex.public static void nqueueCount(long struct,
int value)
queueCount field of the specified struct.public static void npQueuePriorities(long struct,
java.nio.FloatBuffer value)
pQueuePriorities.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.