Package org.lwjgl.vulkan
Class VkCmdReserveSpaceForCommandsInfoNVX
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkCmdReserveSpaceForCommandsInfoNVX
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkCmdReserveSpaceForCommandsInfoNVX extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying parameters for the reservation of command buffer space.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_CMD_RESERVE_SPACE_FOR_COMMANDS_INFO_NVXpNextmust beNULLobjectTablemust be a validVkObjectTableNVXhandleindirectCommandsLayoutmust be a validVkIndirectCommandsLayoutNVXhandle- Both of
indirectCommandsLayout, andobjectTablemust have been created, allocated, or retrieved from the sameVkDevice
Host Synchronization
- Host access to
objectTablemust be externally synchronized
See Also
Member documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.objectTable– theVkObjectTableNVXto be used for the generation process. Only registered objects at the timeCmdReserveSpaceForCommandsNVXis called, will be taken into account for the reservation.indirectCommandsLayout– theVkIndirectCommandsLayoutNVXthat must also be used at generation time.maxSequencesCount– the maximum number of sequences for which command buffer space will be reserved.
Layout
struct VkCmdReserveSpaceForCommandsInfoNVX { VkStructureType sType; void const * pNext; VkObjectTableNVX objectTable; VkIndirectCommandsLayoutNVX indirectCommandsLayout; uint32_t maxSequencesCount; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkCmdReserveSpaceForCommandsInfoNVX.BufferAn array ofVkCmdReserveSpaceForCommandsInfoNVXstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intINDIRECTCOMMANDSLAYOUT
MAXSEQUENCESCOUNT
OBJECTTABLE
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkCmdReserveSpaceForCommandsInfoNVX(java.nio.ByteBuffer container)Creates aVkCmdReserveSpaceForCommandsInfoNVXinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkCmdReserveSpaceForCommandsInfoNVXcalloc()Returns a newVkCmdReserveSpaceForCommandsInfoNVXinstance allocated withmemCalloc.static VkCmdReserveSpaceForCommandsInfoNVX.Buffercalloc(int capacity)Returns a newVkCmdReserveSpaceForCommandsInfoNVX.Bufferinstance allocated withmemCalloc.static VkCmdReserveSpaceForCommandsInfoNVXcallocStack()Returns a newVkCmdReserveSpaceForCommandsInfoNVXinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkCmdReserveSpaceForCommandsInfoNVX.BuffercallocStack(int capacity)Returns a newVkCmdReserveSpaceForCommandsInfoNVX.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkCmdReserveSpaceForCommandsInfoNVX.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkCmdReserveSpaceForCommandsInfoNVX.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkCmdReserveSpaceForCommandsInfoNVXcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkCmdReserveSpaceForCommandsInfoNVXinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkCmdReserveSpaceForCommandsInfoNVXcreate()Returns a newVkCmdReserveSpaceForCommandsInfoNVXinstance allocated withBufferUtils.static VkCmdReserveSpaceForCommandsInfoNVX.Buffercreate(int capacity)Returns a newVkCmdReserveSpaceForCommandsInfoNVX.Bufferinstance allocated withBufferUtils.static VkCmdReserveSpaceForCommandsInfoNVXcreate(long address)Returns a newVkCmdReserveSpaceForCommandsInfoNVXinstance for the specified memory address.static VkCmdReserveSpaceForCommandsInfoNVX.Buffercreate(long address, int capacity)Create aVkCmdReserveSpaceForCommandsInfoNVX.Bufferinstance at the specified memory.static VkCmdReserveSpaceForCommandsInfoNVXcreateSafe(long address)static VkCmdReserveSpaceForCommandsInfoNVX.BuffercreateSafe(long address, int capacity)longindirectCommandsLayout()Returns the value of theindirectCommandsLayoutfield.VkCmdReserveSpaceForCommandsInfoNVXindirectCommandsLayout(long value)Sets the specified value to theindirectCommandsLayoutfield.static VkCmdReserveSpaceForCommandsInfoNVXmalloc()Returns a newVkCmdReserveSpaceForCommandsInfoNVXinstance allocated withmemAlloc.static VkCmdReserveSpaceForCommandsInfoNVX.Buffermalloc(int capacity)Returns a newVkCmdReserveSpaceForCommandsInfoNVX.Bufferinstance allocated withmemAlloc.static VkCmdReserveSpaceForCommandsInfoNVXmallocStack()Returns a newVkCmdReserveSpaceForCommandsInfoNVXinstance allocated on the thread-localMemoryStack.static VkCmdReserveSpaceForCommandsInfoNVX.BuffermallocStack(int capacity)Returns a newVkCmdReserveSpaceForCommandsInfoNVX.Bufferinstance allocated on the thread-localMemoryStack.static VkCmdReserveSpaceForCommandsInfoNVX.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkCmdReserveSpaceForCommandsInfoNVX.Bufferinstance allocated on the specifiedMemoryStack.static VkCmdReserveSpaceForCommandsInfoNVXmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkCmdReserveSpaceForCommandsInfoNVXinstance allocated on the specifiedMemoryStack.intmaxSequencesCount()Returns the value of themaxSequencesCountfield.VkCmdReserveSpaceForCommandsInfoNVXmaxSequencesCount(int value)Sets the specified value to themaxSequencesCountfield.static longnindirectCommandsLayout(long struct)Unsafe version ofindirectCommandsLayout().static voidnindirectCommandsLayout(long struct, long value)Unsafe version ofindirectCommandsLayout.static intnmaxSequencesCount(long struct)Unsafe version ofmaxSequencesCount().static voidnmaxSequencesCount(long struct, int value)Unsafe version ofmaxSequencesCount.static longnobjectTable(long struct)Unsafe version ofobjectTable().static voidnobjectTable(long struct, long value)Unsafe version ofobjectTable.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.longobjectTable()Returns the value of theobjectTablefield.VkCmdReserveSpaceForCommandsInfoNVXobjectTable(long value)Sets the specified value to theobjectTablefield.longpNext()Returns the value of thepNextfield.VkCmdReserveSpaceForCommandsInfoNVXpNext(long value)Sets the specified value to thepNextfield.VkCmdReserveSpaceForCommandsInfoNVXset(int sType, long pNext, long objectTable, long indirectCommandsLayout, int maxSequencesCount)Initializes this struct with the specified values.VkCmdReserveSpaceForCommandsInfoNVXset(VkCmdReserveSpaceForCommandsInfoNVX src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkCmdReserveSpaceForCommandsInfoNVXsType(int value)Sets the specified value to thesTypefield.
-
-
-
Constructor Detail
-
VkCmdReserveSpaceForCommandsInfoNVX
public VkCmdReserveSpaceForCommandsInfoNVX(java.nio.ByteBuffer container)
Creates aVkCmdReserveSpaceForCommandsInfoNVXinstance 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()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
objectTable
public long objectTable()
Returns the value of theobjectTablefield.
-
indirectCommandsLayout
public long indirectCommandsLayout()
Returns the value of theindirectCommandsLayoutfield.
-
maxSequencesCount
public int maxSequencesCount()
Returns the value of themaxSequencesCountfield.
-
sType
public VkCmdReserveSpaceForCommandsInfoNVX sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkCmdReserveSpaceForCommandsInfoNVX pNext(long value)
Sets the specified value to thepNextfield.
-
objectTable
public VkCmdReserveSpaceForCommandsInfoNVX objectTable(long value)
Sets the specified value to theobjectTablefield.
-
indirectCommandsLayout
public VkCmdReserveSpaceForCommandsInfoNVX indirectCommandsLayout(long value)
Sets the specified value to theindirectCommandsLayoutfield.
-
maxSequencesCount
public VkCmdReserveSpaceForCommandsInfoNVX maxSequencesCount(int value)
Sets the specified value to themaxSequencesCountfield.
-
set
public VkCmdReserveSpaceForCommandsInfoNVX set(int sType, long pNext, long objectTable, long indirectCommandsLayout, int maxSequencesCount)
Initializes this struct with the specified values.
-
set
public VkCmdReserveSpaceForCommandsInfoNVX set(VkCmdReserveSpaceForCommandsInfoNVX src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkCmdReserveSpaceForCommandsInfoNVX malloc()
Returns a newVkCmdReserveSpaceForCommandsInfoNVXinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkCmdReserveSpaceForCommandsInfoNVX calloc()
Returns a newVkCmdReserveSpaceForCommandsInfoNVXinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkCmdReserveSpaceForCommandsInfoNVX create()
Returns a newVkCmdReserveSpaceForCommandsInfoNVXinstance allocated withBufferUtils.
-
create
public static VkCmdReserveSpaceForCommandsInfoNVX create(long address)
Returns a newVkCmdReserveSpaceForCommandsInfoNVXinstance for the specified memory address.
-
createSafe
@Nullable public static VkCmdReserveSpaceForCommandsInfoNVX createSafe(long address)
-
malloc
public static VkCmdReserveSpaceForCommandsInfoNVX.Buffer malloc(int capacity)
Returns a newVkCmdReserveSpaceForCommandsInfoNVX.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkCmdReserveSpaceForCommandsInfoNVX.Buffer calloc(int capacity)
Returns a newVkCmdReserveSpaceForCommandsInfoNVX.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkCmdReserveSpaceForCommandsInfoNVX.Buffer create(int capacity)
Returns a newVkCmdReserveSpaceForCommandsInfoNVX.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkCmdReserveSpaceForCommandsInfoNVX.Buffer create(long address, int capacity)
Create aVkCmdReserveSpaceForCommandsInfoNVX.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkCmdReserveSpaceForCommandsInfoNVX.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkCmdReserveSpaceForCommandsInfoNVX mallocStack()
Returns a newVkCmdReserveSpaceForCommandsInfoNVXinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkCmdReserveSpaceForCommandsInfoNVX callocStack()
Returns a newVkCmdReserveSpaceForCommandsInfoNVXinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkCmdReserveSpaceForCommandsInfoNVX mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkCmdReserveSpaceForCommandsInfoNVXinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkCmdReserveSpaceForCommandsInfoNVX callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkCmdReserveSpaceForCommandsInfoNVXinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkCmdReserveSpaceForCommandsInfoNVX.Buffer mallocStack(int capacity)
Returns a newVkCmdReserveSpaceForCommandsInfoNVX.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkCmdReserveSpaceForCommandsInfoNVX.Buffer callocStack(int capacity)
Returns a newVkCmdReserveSpaceForCommandsInfoNVX.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkCmdReserveSpaceForCommandsInfoNVX.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkCmdReserveSpaceForCommandsInfoNVX.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkCmdReserveSpaceForCommandsInfoNVX.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkCmdReserveSpaceForCommandsInfoNVX.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().
-
nobjectTable
public static long nobjectTable(long struct)
Unsafe version ofobjectTable().
-
nindirectCommandsLayout
public static long nindirectCommandsLayout(long struct)
Unsafe version ofindirectCommandsLayout().
-
nmaxSequencesCount
public static int nmaxSequencesCount(long struct)
Unsafe version ofmaxSequencesCount().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nobjectTable
public static void nobjectTable(long struct, long value)Unsafe version ofobjectTable.
-
nindirectCommandsLayout
public static void nindirectCommandsLayout(long struct, long value)Unsafe version ofindirectCommandsLayout.
-
nmaxSequencesCount
public static void nmaxSequencesCount(long struct, int value)Unsafe version ofmaxSequencesCount.
-
-