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.NativeResource
Structure specifying parameters for the reservation of command buffer space.Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_CMD_RESERVE_SPACE_FOR_COMMANDS_INFO_NVX
pNext
must beNULL
objectTable
must be a validVkObjectTableNVX
handleindirectCommandsLayout
must be a validVkIndirectCommandsLayoutNVX
handle- Both of
indirectCommandsLayout
, andobjectTable
must have been created, allocated, or retrieved from the sameVkDevice
Host Synchronization
- Host access to
objectTable
must be externally synchronized
See Also
Member documentation
sType
– the type of this structure.pNext
–NULL
or a pointer to an extension-specific structure.objectTable
– theVkObjectTableNVX
to be used for the generation process. Only registered objects at the timeCmdReserveSpaceForCommandsNVX
is called, will be taken into account for the reservation.indirectCommandsLayout
– theVkIndirectCommandsLayoutNVX
that 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 class
VkCmdReserveSpaceForCommandsInfoNVX.Buffer
An array ofVkCmdReserveSpaceForCommandsInfoNVX
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
INDIRECTCOMMANDSLAYOUT
MAXSEQUENCESCOUNT
OBJECTTABLE
PNEXTThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
STYPE
The struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkCmdReserveSpaceForCommandsInfoNVX(java.nio.ByteBuffer container)
Creates aVkCmdReserveSpaceForCommandsInfoNVX
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkCmdReserveSpaceForCommandsInfoNVX
calloc()
Returns a newVkCmdReserveSpaceForCommandsInfoNVX
instance allocated withmemCalloc
.static VkCmdReserveSpaceForCommandsInfoNVX.Buffer
calloc(int capacity)
Returns a newVkCmdReserveSpaceForCommandsInfoNVX.Buffer
instance allocated withmemCalloc
.static VkCmdReserveSpaceForCommandsInfoNVX
callocStack()
Returns a newVkCmdReserveSpaceForCommandsInfoNVX
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkCmdReserveSpaceForCommandsInfoNVX.Buffer
callocStack(int capacity)
Returns a newVkCmdReserveSpaceForCommandsInfoNVX.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkCmdReserveSpaceForCommandsInfoNVX.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkCmdReserveSpaceForCommandsInfoNVX.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkCmdReserveSpaceForCommandsInfoNVX
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkCmdReserveSpaceForCommandsInfoNVX
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkCmdReserveSpaceForCommandsInfoNVX
create()
Returns a newVkCmdReserveSpaceForCommandsInfoNVX
instance allocated withBufferUtils
.static VkCmdReserveSpaceForCommandsInfoNVX.Buffer
create(int capacity)
Returns a newVkCmdReserveSpaceForCommandsInfoNVX.Buffer
instance allocated withBufferUtils
.static VkCmdReserveSpaceForCommandsInfoNVX
create(long address)
Returns a newVkCmdReserveSpaceForCommandsInfoNVX
instance for the specified memory address.static VkCmdReserveSpaceForCommandsInfoNVX.Buffer
create(long address, int capacity)
Create aVkCmdReserveSpaceForCommandsInfoNVX.Buffer
instance at the specified memory.static VkCmdReserveSpaceForCommandsInfoNVX
createSafe(long address)
static VkCmdReserveSpaceForCommandsInfoNVX.Buffer
createSafe(long address, int capacity)
long
indirectCommandsLayout()
Returns the value of theindirectCommandsLayout
field.VkCmdReserveSpaceForCommandsInfoNVX
indirectCommandsLayout(long value)
Sets the specified value to theindirectCommandsLayout
field.static VkCmdReserveSpaceForCommandsInfoNVX
malloc()
Returns a newVkCmdReserveSpaceForCommandsInfoNVX
instance allocated withmemAlloc
.static VkCmdReserveSpaceForCommandsInfoNVX.Buffer
malloc(int capacity)
Returns a newVkCmdReserveSpaceForCommandsInfoNVX.Buffer
instance allocated withmemAlloc
.static VkCmdReserveSpaceForCommandsInfoNVX
mallocStack()
Returns a newVkCmdReserveSpaceForCommandsInfoNVX
instance allocated on the thread-localMemoryStack
.static VkCmdReserveSpaceForCommandsInfoNVX.Buffer
mallocStack(int capacity)
Returns a newVkCmdReserveSpaceForCommandsInfoNVX.Buffer
instance allocated on the thread-localMemoryStack
.static VkCmdReserveSpaceForCommandsInfoNVX.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkCmdReserveSpaceForCommandsInfoNVX.Buffer
instance allocated on the specifiedMemoryStack
.static VkCmdReserveSpaceForCommandsInfoNVX
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkCmdReserveSpaceForCommandsInfoNVX
instance allocated on the specifiedMemoryStack
.int
maxSequencesCount()
Returns the value of themaxSequencesCount
field.VkCmdReserveSpaceForCommandsInfoNVX
maxSequencesCount(int value)
Sets the specified value to themaxSequencesCount
field.static long
nindirectCommandsLayout(long struct)
Unsafe version ofindirectCommandsLayout()
.static void
nindirectCommandsLayout(long struct, long value)
Unsafe version ofindirectCommandsLayout
.static int
nmaxSequencesCount(long struct)
Unsafe version ofmaxSequencesCount()
.static void
nmaxSequencesCount(long struct, int value)
Unsafe version ofmaxSequencesCount
.static long
nobjectTable(long struct)
Unsafe version ofobjectTable()
.static void
nobjectTable(long struct, long value)
Unsafe version ofobjectTable
.static long
npNext(long struct)
Unsafe version ofpNext()
.static void
npNext(long struct, long value)
Unsafe version ofpNext
.static int
nsType(long struct)
Unsafe version ofsType()
.static void
nsType(long struct, int value)
Unsafe version ofsType
.long
objectTable()
Returns the value of theobjectTable
field.VkCmdReserveSpaceForCommandsInfoNVX
objectTable(long value)
Sets the specified value to theobjectTable
field.long
pNext()
Returns the value of thepNext
field.VkCmdReserveSpaceForCommandsInfoNVX
pNext(long value)
Sets the specified value to thepNext
field.VkCmdReserveSpaceForCommandsInfoNVX
set(int sType, long pNext, long objectTable, long indirectCommandsLayout, int maxSequencesCount)
Initializes this struct with the specified values.VkCmdReserveSpaceForCommandsInfoNVX
set(VkCmdReserveSpaceForCommandsInfoNVX src)
Copies the specified struct data to this struct.int
sizeof()
int
sType()
Returns the value of thesType
field.VkCmdReserveSpaceForCommandsInfoNVX
sType(int value)
Sets the specified value to thesType
field.
-
-
-
Constructor Detail
-
VkCmdReserveSpaceForCommandsInfoNVX
public VkCmdReserveSpaceForCommandsInfoNVX(java.nio.ByteBuffer container)
Creates aVkCmdReserveSpaceForCommandsInfoNVX
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesType
field.
-
pNext
public long pNext()
Returns the value of thepNext
field.
-
objectTable
public long objectTable()
Returns the value of theobjectTable
field.
-
indirectCommandsLayout
public long indirectCommandsLayout()
Returns the value of theindirectCommandsLayout
field.
-
maxSequencesCount
public int maxSequencesCount()
Returns the value of themaxSequencesCount
field.
-
sType
public VkCmdReserveSpaceForCommandsInfoNVX sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkCmdReserveSpaceForCommandsInfoNVX pNext(long value)
Sets the specified value to thepNext
field.
-
objectTable
public VkCmdReserveSpaceForCommandsInfoNVX objectTable(long value)
Sets the specified value to theobjectTable
field.
-
indirectCommandsLayout
public VkCmdReserveSpaceForCommandsInfoNVX indirectCommandsLayout(long value)
Sets the specified value to theindirectCommandsLayout
field.
-
maxSequencesCount
public VkCmdReserveSpaceForCommandsInfoNVX maxSequencesCount(int value)
Sets the specified value to themaxSequencesCount
field.
-
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 newVkCmdReserveSpaceForCommandsInfoNVX
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkCmdReserveSpaceForCommandsInfoNVX calloc()
Returns a newVkCmdReserveSpaceForCommandsInfoNVX
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkCmdReserveSpaceForCommandsInfoNVX create()
Returns a newVkCmdReserveSpaceForCommandsInfoNVX
instance allocated withBufferUtils
.
-
create
public static VkCmdReserveSpaceForCommandsInfoNVX create(long address)
Returns a newVkCmdReserveSpaceForCommandsInfoNVX
instance for the specified memory address.
-
createSafe
@Nullable public static VkCmdReserveSpaceForCommandsInfoNVX createSafe(long address)
-
malloc
public static VkCmdReserveSpaceForCommandsInfoNVX.Buffer malloc(int capacity)
Returns a newVkCmdReserveSpaceForCommandsInfoNVX.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkCmdReserveSpaceForCommandsInfoNVX.Buffer calloc(int capacity)
Returns a newVkCmdReserveSpaceForCommandsInfoNVX.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkCmdReserveSpaceForCommandsInfoNVX.Buffer create(int capacity)
Returns a newVkCmdReserveSpaceForCommandsInfoNVX.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkCmdReserveSpaceForCommandsInfoNVX.Buffer create(long address, int capacity)
Create aVkCmdReserveSpaceForCommandsInfoNVX.Buffer
instance 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 newVkCmdReserveSpaceForCommandsInfoNVX
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkCmdReserveSpaceForCommandsInfoNVX callocStack()
Returns a newVkCmdReserveSpaceForCommandsInfoNVX
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkCmdReserveSpaceForCommandsInfoNVX mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkCmdReserveSpaceForCommandsInfoNVX
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkCmdReserveSpaceForCommandsInfoNVX callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkCmdReserveSpaceForCommandsInfoNVX
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkCmdReserveSpaceForCommandsInfoNVX.Buffer callocStack(int capacity)
Returns a newVkCmdReserveSpaceForCommandsInfoNVX.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-
-