public class VkCommandPoolCreateInfo
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
sType must be STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFOpNext must be NULLflags must be a valid combination of VkCommandPoolCreateFlagBits valuessType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.flags – a bitmask of VkCommandPoolCreateFlagBits indicating usage behavior for the pool and command buffers allocated from it.queueFamilyIndex – designates 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.
struct VkCommandPoolCreateInfo {
VkStructureType sType;
void const * pNext;
VkCommandPoolCreateFlags flags;
uint32_t queueFamilyIndex;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkCommandPoolCreateInfo.Buffer
An array of
VkCommandPoolCreateInfo 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 |
QUEUEFAMILYINDEX
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkCommandPoolCreateInfo(java.nio.ByteBuffer container)
Creates a
VkCommandPoolCreateInfo instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkCommandPoolCreateInfo |
calloc()
Returns a new
VkCommandPoolCreateInfo instance allocated with memCalloc. |
static VkCommandPoolCreateInfo.Buffer |
calloc(int capacity)
Returns a new
VkCommandPoolCreateInfo.Buffer instance allocated with memCalloc. |
static VkCommandPoolCreateInfo |
callocStack()
Returns a new
VkCommandPoolCreateInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkCommandPoolCreateInfo.Buffer |
callocStack(int capacity)
Returns a new
VkCommandPoolCreateInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkCommandPoolCreateInfo.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkCommandPoolCreateInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkCommandPoolCreateInfo |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkCommandPoolCreateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkCommandPoolCreateInfo |
create()
Returns a new
VkCommandPoolCreateInfo instance allocated with BufferUtils. |
static VkCommandPoolCreateInfo.Buffer |
create(int capacity)
Returns a new
VkCommandPoolCreateInfo.Buffer instance allocated with BufferUtils. |
static VkCommandPoolCreateInfo |
create(long address)
Returns a new
VkCommandPoolCreateInfo instance for the specified memory address. |
static VkCommandPoolCreateInfo.Buffer |
create(long address,
int capacity)
Create a
VkCommandPoolCreateInfo.Buffer instance at the specified memory. |
static VkCommandPoolCreateInfo |
createSafe(long address)
|
static VkCommandPoolCreateInfo.Buffer |
createSafe(long address,
int capacity)
|
int |
flags()
Returns the value of the
flags field. |
VkCommandPoolCreateInfo |
flags(int value)
Sets the specified value to the
flags field. |
static VkCommandPoolCreateInfo |
malloc()
Returns a new
VkCommandPoolCreateInfo instance allocated with memAlloc. |
static VkCommandPoolCreateInfo.Buffer |
malloc(int capacity)
Returns a new
VkCommandPoolCreateInfo.Buffer instance allocated with memAlloc. |
static VkCommandPoolCreateInfo |
mallocStack()
Returns a new
VkCommandPoolCreateInfo instance allocated on the thread-local MemoryStack. |
static VkCommandPoolCreateInfo.Buffer |
mallocStack(int capacity)
Returns a new
VkCommandPoolCreateInfo.Buffer instance allocated on the thread-local MemoryStack. |
static VkCommandPoolCreateInfo.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkCommandPoolCreateInfo.Buffer instance allocated on the specified MemoryStack. |
static VkCommandPoolCreateInfo |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkCommandPoolCreateInfo 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 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. |
VkCommandPoolCreateInfo |
pNext(long value)
Sets the specified value to the
pNext field. |
int |
queueFamilyIndex()
Returns the value of the
queueFamilyIndex field. |
VkCommandPoolCreateInfo |
queueFamilyIndex(int value)
Sets the specified value to the
queueFamilyIndex field. |
VkCommandPoolCreateInfo |
set(int sType,
long pNext,
int flags,
int queueFamilyIndex)
Initializes this struct with the specified values.
|
VkCommandPoolCreateInfo |
set(VkCommandPoolCreateInfo src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkCommandPoolCreateInfo |
sType(int value)
Sets the specified value to the
sType field. |
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 VkCommandPoolCreateInfo(java.nio.ByteBuffer container)
VkCommandPoolCreateInfo 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 VkCommandPoolCreateInfo sType(int value)
sType field.public VkCommandPoolCreateInfo pNext(long value)
pNext field.public VkCommandPoolCreateInfo flags(int value)
flags field.public VkCommandPoolCreateInfo queueFamilyIndex(int value)
queueFamilyIndex field.public VkCommandPoolCreateInfo set(int sType, long pNext, int flags, int queueFamilyIndex)
public VkCommandPoolCreateInfo set(VkCommandPoolCreateInfo src)
src - the source structpublic static VkCommandPoolCreateInfo malloc()
VkCommandPoolCreateInfo instance allocated with memAlloc. The instance must be explicitly freed.public static VkCommandPoolCreateInfo calloc()
VkCommandPoolCreateInfo instance allocated with memCalloc. The instance must be explicitly freed.public static VkCommandPoolCreateInfo create()
VkCommandPoolCreateInfo instance allocated with BufferUtils.public static VkCommandPoolCreateInfo create(long address)
VkCommandPoolCreateInfo instance for the specified memory address.@Nullable public static VkCommandPoolCreateInfo createSafe(long address)
public static VkCommandPoolCreateInfo.Buffer malloc(int capacity)
VkCommandPoolCreateInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkCommandPoolCreateInfo.Buffer calloc(int capacity)
VkCommandPoolCreateInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkCommandPoolCreateInfo.Buffer create(int capacity)
VkCommandPoolCreateInfo.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkCommandPoolCreateInfo.Buffer create(long address, int capacity)
VkCommandPoolCreateInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkCommandPoolCreateInfo.Buffer createSafe(long address, int capacity)
public static VkCommandPoolCreateInfo mallocStack()
VkCommandPoolCreateInfo instance allocated on the thread-local MemoryStack.public static VkCommandPoolCreateInfo callocStack()
VkCommandPoolCreateInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkCommandPoolCreateInfo mallocStack(org.lwjgl.system.MemoryStack stack)
VkCommandPoolCreateInfo instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkCommandPoolCreateInfo callocStack(org.lwjgl.system.MemoryStack stack)
VkCommandPoolCreateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkCommandPoolCreateInfo.Buffer mallocStack(int capacity)
VkCommandPoolCreateInfo.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkCommandPoolCreateInfo.Buffer callocStack(int capacity)
VkCommandPoolCreateInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkCommandPoolCreateInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkCommandPoolCreateInfo.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkCommandPoolCreateInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkCommandPoolCreateInfo.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 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.Copyright LWJGL. All Rights Reserved. License terms.