Package org.lwjgl.vulkan
Class VkCommandBufferAllocateInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkCommandBufferAllocateInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkCommandBufferAllocateInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying the allocation parameters for command buffer object.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFOpNextmust beNULLcommandPoolmust be a validVkCommandPoolhandlelevelmust be a validVkCommandBufferLevelvalue
See Also
Layout
struct VkCommandBufferAllocateInfo { VkStructureTypesType(); void const *pNext(); VkCommandPoolcommandPool(); VkCommandBufferLevellevel(); uint32_tcommandBufferCount(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkCommandBufferAllocateInfo.BufferAn array ofVkCommandBufferAllocateInfostructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCOMMANDBUFFERCOUNT
COMMANDPOOL
LEVEL
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkCommandBufferAllocateInfo(java.nio.ByteBuffer container)Creates aVkCommandBufferAllocateInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static VkCommandBufferAllocateInfocalloc()Returns a newVkCommandBufferAllocateInfoinstance allocated withmemCalloc.static VkCommandBufferAllocateInfo.Buffercalloc(int capacity)Returns a newVkCommandBufferAllocateInfo.Bufferinstance allocated withmemCalloc.static VkCommandBufferAllocateInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkCommandBufferAllocateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkCommandBufferAllocateInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkCommandBufferAllocateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkCommandBufferAllocateInfocallocStack()Deprecated.static VkCommandBufferAllocateInfo.BuffercallocStack(int capacity)Deprecated.static VkCommandBufferAllocateInfo.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkCommandBufferAllocateInfocallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.intcommandBufferCount()the number of command buffers to allocate from the pool.VkCommandBufferAllocateInfocommandBufferCount(int value)Sets the specified value to thecommandBufferCount()field.longcommandPool()the command pool from which the command buffers are allocated.VkCommandBufferAllocateInfocommandPool(long value)Sets the specified value to thecommandPool()field.static VkCommandBufferAllocateInfocreate()Returns a newVkCommandBufferAllocateInfoinstance allocated withBufferUtils.static VkCommandBufferAllocateInfo.Buffercreate(int capacity)Returns a newVkCommandBufferAllocateInfo.Bufferinstance allocated withBufferUtils.static VkCommandBufferAllocateInfocreate(long address)Returns a newVkCommandBufferAllocateInfoinstance for the specified memory address.static VkCommandBufferAllocateInfo.Buffercreate(long address, int capacity)Create aVkCommandBufferAllocateInfo.Bufferinstance at the specified memory.static VkCommandBufferAllocateInfocreateSafe(long address)static VkCommandBufferAllocateInfo.BuffercreateSafe(long address, int capacity)intlevel()aVkCommandBufferLevelvalue specifying the command buffer level.VkCommandBufferAllocateInfolevel(int value)Sets the specified value to thelevel()field.static VkCommandBufferAllocateInfomalloc()Returns a newVkCommandBufferAllocateInfoinstance allocated withmemAlloc.static VkCommandBufferAllocateInfo.Buffermalloc(int capacity)Returns a newVkCommandBufferAllocateInfo.Bufferinstance allocated withmemAlloc.static VkCommandBufferAllocateInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkCommandBufferAllocateInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkCommandBufferAllocateInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkCommandBufferAllocateInfoinstance allocated on the specifiedMemoryStack.static VkCommandBufferAllocateInfomallocStack()Deprecated.static VkCommandBufferAllocateInfo.BuffermallocStack(int capacity)Deprecated.static VkCommandBufferAllocateInfo.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkCommandBufferAllocateInfomallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static intncommandBufferCount(long struct)Unsafe version ofcommandBufferCount().static voidncommandBufferCount(long struct, int value)Unsafe version ofcommandBufferCount.static longncommandPool(long struct)Unsafe version ofcommandPool().static voidncommandPool(long struct, long value)Unsafe version ofcommandPool.static intnlevel(long struct)Unsafe version oflevel().static voidnlevel(long struct, int value)Unsafe version oflevel.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.longpNext()NULLor a pointer to a structure extending this structure.VkCommandBufferAllocateInfopNext(long value)Sets the specified value to thepNext()field.VkCommandBufferAllocateInfoset(int sType, long pNext, long commandPool, int level, int commandBufferCount)Initializes this struct with the specified values.VkCommandBufferAllocateInfoset(VkCommandBufferAllocateInfo src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkCommandBufferAllocateInfosType(int value)Sets the specified value to thesType()field.VkCommandBufferAllocateInfosType$Default()Sets theSTRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFOvalue to thesType()field.
-
-
-
Constructor Detail
-
VkCommandBufferAllocateInfo
public VkCommandBufferAllocateInfo(java.nio.ByteBuffer container)
Creates aVkCommandBufferAllocateInfoinstance at the current position of the specifiedByteBuffercontainer. 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:
sizeofin classorg.lwjgl.system.Struct
-
sType
public int sType()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
commandPool
public long commandPool()
the command pool from which the command buffers are allocated.
-
level
public int level()
aVkCommandBufferLevelvalue specifying the command buffer level.
-
commandBufferCount
public int commandBufferCount()
the number of command buffers to allocate from the pool.
-
sType
public VkCommandBufferAllocateInfo sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkCommandBufferAllocateInfo sType$Default()
Sets theSTRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFOvalue to thesType()field.
-
pNext
public VkCommandBufferAllocateInfo pNext(long value)
Sets the specified value to thepNext()field.
-
commandPool
public VkCommandBufferAllocateInfo commandPool(long value)
Sets the specified value to thecommandPool()field.
-
level
public VkCommandBufferAllocateInfo level(int value)
Sets the specified value to thelevel()field.
-
commandBufferCount
public VkCommandBufferAllocateInfo commandBufferCount(int value)
Sets the specified value to thecommandBufferCount()field.
-
set
public VkCommandBufferAllocateInfo set(int sType, long pNext, long commandPool, int level, int commandBufferCount)
Initializes this struct with the specified values.
-
set
public VkCommandBufferAllocateInfo set(VkCommandBufferAllocateInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkCommandBufferAllocateInfo malloc()
Returns a newVkCommandBufferAllocateInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkCommandBufferAllocateInfo calloc()
Returns a newVkCommandBufferAllocateInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkCommandBufferAllocateInfo create()
Returns a newVkCommandBufferAllocateInfoinstance allocated withBufferUtils.
-
create
public static VkCommandBufferAllocateInfo create(long address)
Returns a newVkCommandBufferAllocateInfoinstance for the specified memory address.
-
createSafe
@Nullable public static VkCommandBufferAllocateInfo createSafe(long address)
-
malloc
public static VkCommandBufferAllocateInfo.Buffer malloc(int capacity)
Returns a newVkCommandBufferAllocateInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkCommandBufferAllocateInfo.Buffer calloc(int capacity)
Returns a newVkCommandBufferAllocateInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkCommandBufferAllocateInfo.Buffer create(int capacity)
Returns a newVkCommandBufferAllocateInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkCommandBufferAllocateInfo.Buffer create(long address, int capacity)
Create aVkCommandBufferAllocateInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkCommandBufferAllocateInfo.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VkCommandBufferAllocateInfo mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkCommandBufferAllocateInfo callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkCommandBufferAllocateInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkCommandBufferAllocateInfo callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkCommandBufferAllocateInfo.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkCommandBufferAllocateInfo.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkCommandBufferAllocateInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkCommandBufferAllocateInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkCommandBufferAllocateInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkCommandBufferAllocateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkCommandBufferAllocateInfo calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkCommandBufferAllocateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkCommandBufferAllocateInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkCommandBufferAllocateInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkCommandBufferAllocateInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkCommandBufferAllocateInfo.Bufferinstance allocated on the specifiedMemoryStackand 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().
-
ncommandPool
public static long ncommandPool(long struct)
Unsafe version ofcommandPool().
-
nlevel
public static int nlevel(long struct)
Unsafe version oflevel().
-
ncommandBufferCount
public static int ncommandBufferCount(long struct)
Unsafe version ofcommandBufferCount().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
ncommandPool
public static void ncommandPool(long struct, long value)Unsafe version ofcommandPool.
-
nlevel
public static void nlevel(long struct, int value)Unsafe version oflevel.
-
ncommandBufferCount
public static void ncommandBufferCount(long struct, int value)Unsafe version ofcommandBufferCount.
-
-