public class VkCommandBufferAllocateInfo
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
commandBufferCount must be greater than 0sType must be STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFOpNext must be NULLcommandPool must be a valid VkCommandPool handlelevel must be a valid VkCommandBufferLevel valuesType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.commandPool – the command pool from which the command buffers are allocated.level – a VkCommandBufferLevel value specifying the command buffer level.commandBufferCount – the number of command buffers to allocate from the pool.
struct VkCommandBufferAllocateInfo {
VkStructureType sType;
void const * pNext;
VkCommandPool commandPool;
VkCommandBufferLevel level;
uint32_t commandBufferCount;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkCommandBufferAllocateInfo.Buffer
An array of
VkCommandBufferAllocateInfo structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
COMMANDBUFFERCOUNT
The struct member offsets.
|
static int |
COMMANDPOOL
The struct member offsets.
|
static int |
LEVEL
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkCommandBufferAllocateInfo(java.nio.ByteBuffer container)
Creates a
VkCommandBufferAllocateInfo instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkCommandBufferAllocateInfo |
calloc()
Returns a new
VkCommandBufferAllocateInfo instance allocated with memCalloc. |
static VkCommandBufferAllocateInfo.Buffer |
calloc(int capacity)
Returns a new
VkCommandBufferAllocateInfo.Buffer instance allocated with memCalloc. |
static VkCommandBufferAllocateInfo |
callocStack()
Returns a new
VkCommandBufferAllocateInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkCommandBufferAllocateInfo.Buffer |
callocStack(int capacity)
Returns a new
VkCommandBufferAllocateInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkCommandBufferAllocateInfo.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkCommandBufferAllocateInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkCommandBufferAllocateInfo |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkCommandBufferAllocateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero. |
int |
commandBufferCount()
Returns the value of the
commandBufferCount field. |
VkCommandBufferAllocateInfo |
commandBufferCount(int value)
Sets the specified value to the
commandBufferCount field. |
long |
commandPool()
Returns the value of the
commandPool field. |
VkCommandBufferAllocateInfo |
commandPool(long value)
Sets the specified value to the
commandPool field. |
static VkCommandBufferAllocateInfo |
create()
Returns a new
VkCommandBufferAllocateInfo instance allocated with BufferUtils. |
static VkCommandBufferAllocateInfo.Buffer |
create(int capacity)
Returns a new
VkCommandBufferAllocateInfo.Buffer instance allocated with BufferUtils. |
static VkCommandBufferAllocateInfo |
create(long address)
Returns a new
VkCommandBufferAllocateInfo instance for the specified memory address. |
static VkCommandBufferAllocateInfo.Buffer |
create(long address,
int capacity)
Create a
VkCommandBufferAllocateInfo.Buffer instance at the specified memory. |
static VkCommandBufferAllocateInfo |
createSafe(long address)
|
static VkCommandBufferAllocateInfo.Buffer |
createSafe(long address,
int capacity)
|
int |
level()
Returns the value of the
level field. |
VkCommandBufferAllocateInfo |
level(int value)
Sets the specified value to the
level field. |
static VkCommandBufferAllocateInfo |
malloc()
Returns a new
VkCommandBufferAllocateInfo instance allocated with memAlloc. |
static VkCommandBufferAllocateInfo.Buffer |
malloc(int capacity)
Returns a new
VkCommandBufferAllocateInfo.Buffer instance allocated with memAlloc. |
static VkCommandBufferAllocateInfo |
mallocStack()
Returns a new
VkCommandBufferAllocateInfo instance allocated on the thread-local MemoryStack. |
static VkCommandBufferAllocateInfo.Buffer |
mallocStack(int capacity)
Returns a new
VkCommandBufferAllocateInfo.Buffer instance allocated on the thread-local MemoryStack. |
static VkCommandBufferAllocateInfo.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkCommandBufferAllocateInfo.Buffer instance allocated on the specified MemoryStack. |
static VkCommandBufferAllocateInfo |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkCommandBufferAllocateInfo instance allocated on the specified MemoryStack. |
static int |
ncommandBufferCount(long struct)
Unsafe version of
commandBufferCount(). |
static void |
ncommandBufferCount(long struct,
int value)
Unsafe version of
commandBufferCount. |
static long |
ncommandPool(long struct)
Unsafe version of
commandPool(). |
static void |
ncommandPool(long struct,
long value)
Unsafe version of
commandPool. |
static int |
nlevel(long struct)
Unsafe version of
level(). |
static void |
nlevel(long struct,
int value)
Unsafe version of
level. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
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. |
VkCommandBufferAllocateInfo |
pNext(long value)
Sets the specified value to the
pNext field. |
VkCommandBufferAllocateInfo |
set(int sType,
long pNext,
long commandPool,
int level,
int commandBufferCount)
Initializes this struct with the specified values.
|
VkCommandBufferAllocateInfo |
set(VkCommandBufferAllocateInfo src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkCommandBufferAllocateInfo |
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 COMMANDPOOL
public static final int LEVEL
public static final int COMMANDBUFFERCOUNT
public VkCommandBufferAllocateInfo(java.nio.ByteBuffer container)
VkCommandBufferAllocateInfo 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 long commandPool()
commandPool field.public int level()
level field.public int commandBufferCount()
commandBufferCount field.public VkCommandBufferAllocateInfo sType(int value)
sType field.public VkCommandBufferAllocateInfo pNext(long value)
pNext field.public VkCommandBufferAllocateInfo commandPool(long value)
commandPool field.public VkCommandBufferAllocateInfo level(int value)
level field.public VkCommandBufferAllocateInfo commandBufferCount(int value)
commandBufferCount field.public VkCommandBufferAllocateInfo set(int sType, long pNext, long commandPool, int level, int commandBufferCount)
public VkCommandBufferAllocateInfo set(VkCommandBufferAllocateInfo src)
src - the source structpublic static VkCommandBufferAllocateInfo malloc()
VkCommandBufferAllocateInfo instance allocated with memAlloc. The instance must be explicitly freed.public static VkCommandBufferAllocateInfo calloc()
VkCommandBufferAllocateInfo instance allocated with memCalloc. The instance must be explicitly freed.public static VkCommandBufferAllocateInfo create()
VkCommandBufferAllocateInfo instance allocated with BufferUtils.public static VkCommandBufferAllocateInfo create(long address)
VkCommandBufferAllocateInfo instance for the specified memory address.@Nullable public static VkCommandBufferAllocateInfo createSafe(long address)
public static VkCommandBufferAllocateInfo.Buffer malloc(int capacity)
VkCommandBufferAllocateInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkCommandBufferAllocateInfo.Buffer calloc(int capacity)
VkCommandBufferAllocateInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkCommandBufferAllocateInfo.Buffer create(int capacity)
VkCommandBufferAllocateInfo.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkCommandBufferAllocateInfo.Buffer create(long address, int capacity)
VkCommandBufferAllocateInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkCommandBufferAllocateInfo.Buffer createSafe(long address, int capacity)
public static VkCommandBufferAllocateInfo mallocStack()
VkCommandBufferAllocateInfo instance allocated on the thread-local MemoryStack.public static VkCommandBufferAllocateInfo callocStack()
VkCommandBufferAllocateInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkCommandBufferAllocateInfo mallocStack(org.lwjgl.system.MemoryStack stack)
VkCommandBufferAllocateInfo instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkCommandBufferAllocateInfo callocStack(org.lwjgl.system.MemoryStack stack)
VkCommandBufferAllocateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkCommandBufferAllocateInfo.Buffer mallocStack(int capacity)
VkCommandBufferAllocateInfo.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkCommandBufferAllocateInfo.Buffer callocStack(int capacity)
VkCommandBufferAllocateInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkCommandBufferAllocateInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkCommandBufferAllocateInfo.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkCommandBufferAllocateInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkCommandBufferAllocateInfo.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 long ncommandPool(long struct)
commandPool().public static int nlevel(long struct)
level().public static int ncommandBufferCount(long struct)
commandBufferCount().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void ncommandPool(long struct,
long value)
commandPool.public static void nlevel(long struct,
int value)
level.public static void ncommandBufferCount(long struct,
int value)
commandBufferCount.Copyright LWJGL. All Rights Reserved. License terms.