Package org.lwjgl.vulkan
Class VkSubmitInfo2
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
- Direct Known Subclasses:
VkSubmitInfo2KHR
struct VkSubmitInfo2 {
VkStructureType sType;
void const * pNext;
VkSubmitFlags flags;
uint32_t waitSemaphoreInfoCount;
VkSemaphoreSubmitInfo const * pWaitSemaphoreInfos;
uint32_t commandBufferInfoCount;
VkCommandBufferSubmitInfo const * pCommandBufferInfos;
uint32_t signalSemaphoreInfoCount;
VkSemaphoreSubmitInfo const * pSignalSemaphoreInfos;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkSubmitInfo2(ByteBuffer container) Creates aVkSubmitInfo2instance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkSubmitInfo2calloc()Returns a newVkSubmitInfo2instance allocated withmemCalloc.static VkSubmitInfo2.Buffercalloc(int capacity) Returns a newVkSubmitInfo2.Bufferinstance allocated withmemCalloc.static VkSubmitInfo2.Buffercalloc(int capacity, MemoryStack stack) Returns a newVkSubmitInfo2.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSubmitInfo2calloc(MemoryStack stack) Returns a newVkSubmitInfo2instance allocated on the specifiedMemoryStackand initializes all its bits to zero.intstatic VkSubmitInfo2create()Returns a newVkSubmitInfo2instance allocated withBufferUtils.static VkSubmitInfo2.Buffercreate(int capacity) Returns a newVkSubmitInfo2.Bufferinstance allocated withBufferUtils.static VkSubmitInfo2create(long address) Returns a newVkSubmitInfo2instance for the specified memory address.static VkSubmitInfo2.Buffercreate(long address, int capacity) Create aVkSubmitInfo2.Bufferinstance at the specified memory.static @Nullable VkSubmitInfo2createSafe(long address) static @Nullable VkSubmitInfo2.BuffercreateSafe(long address, int capacity) intflags()flags(int value) Sets the specified value to theflagsfield.static VkSubmitInfo2malloc()Returns a newVkSubmitInfo2instance allocated withmemAlloc.static VkSubmitInfo2.Buffermalloc(int capacity) Returns a newVkSubmitInfo2.Bufferinstance allocated withmemAlloc.static VkSubmitInfo2.Buffermalloc(int capacity, MemoryStack stack) Returns a newVkSubmitInfo2.Bufferinstance allocated on the specifiedMemoryStack.static VkSubmitInfo2malloc(MemoryStack stack) Returns a newVkSubmitInfo2instance allocated on the specifiedMemoryStack.static intncommandBufferInfoCount(long struct) Unsafe version ofcommandBufferInfoCount().static voidncommandBufferInfoCount(long struct, int value) Sets the specified value to thecommandBufferInfoCountfield of the specifiedstruct.static intnflags(long struct) Unsafe version offlags().static voidnflags(long struct, int value) Unsafe version offlags.static @Nullable VkCommandBufferSubmitInfo.BuffernpCommandBufferInfos(long struct) Unsafe version ofpCommandBufferInfos().static voidnpCommandBufferInfos(long struct, @Nullable VkCommandBufferSubmitInfo.Buffer value) Unsafe version ofpCommandBufferInfos.static longnpNext(long struct) Unsafe version ofpNext().static voidnpNext(long struct, long value) Unsafe version ofpNext.static @Nullable VkSemaphoreSubmitInfo.BuffernpSignalSemaphoreInfos(long struct) Unsafe version ofpSignalSemaphoreInfos().static voidnpSignalSemaphoreInfos(long struct, @Nullable VkSemaphoreSubmitInfo.Buffer value) Unsafe version ofpSignalSemaphoreInfos.static @Nullable VkSemaphoreSubmitInfo.BuffernpWaitSemaphoreInfos(long struct) Unsafe version ofpWaitSemaphoreInfos().static voidnpWaitSemaphoreInfos(long struct, @Nullable VkSemaphoreSubmitInfo.Buffer value) Unsafe version ofpWaitSemaphoreInfos.static intnsignalSemaphoreInfoCount(long struct) Unsafe version ofsignalSemaphoreInfoCount().static voidnsignalSemaphoreInfoCount(long struct, int value) Sets the specified value to thesignalSemaphoreInfoCountfield of the specifiedstruct.static intnsType(long struct) Unsafe version ofsType().static voidnsType(long struct, int value) Unsafe version ofsType.static intnwaitSemaphoreInfoCount(long struct) Unsafe version ofwaitSemaphoreInfoCount().static voidnwaitSemaphoreInfoCount(long struct, int value) Sets the specified value to thewaitSemaphoreInfoCountfield of the specifiedstruct.@Nullable VkCommandBufferSubmitInfo.BufferpCommandBufferInfos(@Nullable VkCommandBufferSubmitInfo.Buffer value) Sets the address of the specifiedVkCommandBufferSubmitInfo.Bufferto thepCommandBufferInfosfield.longpNext()pNext(long value) Sets the specified value to thepNextfield.pNext(VkFrameBoundaryEXT value) Prepends the specifiedVkFrameBoundaryEXTvalue to thepNextchain.pNext(VkFrameBoundaryTensorsARM value) Prepends the specifiedVkFrameBoundaryTensorsARMvalue to thepNextchain.Prepends the specifiedVkLatencySubmissionPresentIdNVvalue to thepNextchain.Prepends the specifiedVkPerformanceQuerySubmitInfoKHRvalue to thepNextchain.Prepends the specifiedVkWin32KeyedMutexAcquireReleaseInfoKHRvalue to thepNextchain.Prepends the specifiedVkWin32KeyedMutexAcquireReleaseInfoNVvalue to thepNextchain.@Nullable VkSemaphoreSubmitInfo.BufferpSignalSemaphoreInfos(@Nullable VkSemaphoreSubmitInfo.Buffer value) Sets the address of the specifiedVkSemaphoreSubmitInfo.Bufferto thepSignalSemaphoreInfosfield.@Nullable VkSemaphoreSubmitInfo.BufferpWaitSemaphoreInfos(@Nullable VkSemaphoreSubmitInfo.Buffer value) Sets the address of the specifiedVkSemaphoreSubmitInfo.Bufferto thepWaitSemaphoreInfosfield.set(int sType, long pNext, int flags, @Nullable VkSemaphoreSubmitInfo.Buffer pWaitSemaphoreInfos, @Nullable VkCommandBufferSubmitInfo.Buffer pCommandBufferInfos, @Nullable VkSemaphoreSubmitInfo.Buffer pSignalSemaphoreInfos) Initializes this struct with the specified values.set(VkSubmitInfo2 src) Copies the specified struct data to this struct.intintsizeof()Returnssizeof(struct).intsType()sType(int value) Sets the specified value to thesTypefield.Sets theSTRUCTURE_TYPE_SUBMIT_INFO_2value to thesTypefield.static voidvalidate(long struct) Validates pointer members that should not beNULL.intMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
STYPE
public static final int STYPEThe struct member offsets. -
PNEXT
public static final int PNEXTThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets. -
WAITSEMAPHOREINFOCOUNT
public static final int WAITSEMAPHOREINFOCOUNTThe struct member offsets. -
PWAITSEMAPHOREINFOS
public static final int PWAITSEMAPHOREINFOSThe struct member offsets. -
COMMANDBUFFERINFOCOUNT
public static final int COMMANDBUFFERINFOCOUNTThe struct member offsets. -
PCOMMANDBUFFERINFOS
public static final int PCOMMANDBUFFERINFOSThe struct member offsets. -
SIGNALSEMAPHOREINFOCOUNT
public static final int SIGNALSEMAPHOREINFOCOUNTThe struct member offsets. -
PSIGNALSEMAPHOREINFOS
public static final int PSIGNALSEMAPHOREINFOSThe struct member offsets.
-
-
Constructor Details
-
VkSubmitInfo2
Creates aVkSubmitInfo2instance 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<VkSubmitInfo2>
-
sType
public int sType()- Returns:
- the value of the
sTypefield.
-
pNext
public long pNext()- Returns:
- the value of the
pNextfield.
-
flags
public int flags()- Returns:
- the value of the
flagsfield.
-
waitSemaphoreInfoCount
public int waitSemaphoreInfoCount()- Returns:
- the value of the
waitSemaphoreInfoCountfield.
-
pWaitSemaphoreInfos
- Returns:
- a
VkSemaphoreSubmitInfo.Bufferview of the struct array pointed to by thepWaitSemaphoreInfosfield.
-
commandBufferInfoCount
public int commandBufferInfoCount()- Returns:
- the value of the
commandBufferInfoCountfield.
-
pCommandBufferInfos
- Returns:
- a
VkCommandBufferSubmitInfo.Bufferview of the struct array pointed to by thepCommandBufferInfosfield.
-
signalSemaphoreInfoCount
public int signalSemaphoreInfoCount()- Returns:
- the value of the
signalSemaphoreInfoCountfield.
-
pSignalSemaphoreInfos
- Returns:
- a
VkSemaphoreSubmitInfo.Bufferview of the struct array pointed to by thepSignalSemaphoreInfosfield.
-
sType
Sets the specified value to thesTypefield. -
sType$Default
Sets theSTRUCTURE_TYPE_SUBMIT_INFO_2value to thesTypefield. -
pNext
Sets the specified value to thepNextfield. -
pNext
Prepends the specifiedVkFrameBoundaryEXTvalue to thepNextchain. -
pNext
Prepends the specifiedVkFrameBoundaryTensorsARMvalue to thepNextchain. -
pNext
Prepends the specifiedVkLatencySubmissionPresentIdNVvalue to thepNextchain. -
pNext
Prepends the specifiedVkPerformanceQuerySubmitInfoKHRvalue to thepNextchain. -
pNext
Prepends the specifiedVkWin32KeyedMutexAcquireReleaseInfoKHRvalue to thepNextchain. -
pNext
Prepends the specifiedVkWin32KeyedMutexAcquireReleaseInfoNVvalue to thepNextchain. -
flags
Sets the specified value to theflagsfield. -
pWaitSemaphoreInfos
Sets the address of the specifiedVkSemaphoreSubmitInfo.Bufferto thepWaitSemaphoreInfosfield. -
pCommandBufferInfos
Sets the address of the specifiedVkCommandBufferSubmitInfo.Bufferto thepCommandBufferInfosfield. -
pSignalSemaphoreInfos
Sets the address of the specifiedVkSemaphoreSubmitInfo.Bufferto thepSignalSemaphoreInfosfield. -
set
public VkSubmitInfo2 set(int sType, long pNext, int flags, @Nullable VkSemaphoreSubmitInfo.Buffer pWaitSemaphoreInfos, @Nullable VkCommandBufferSubmitInfo.Buffer pCommandBufferInfos, @Nullable VkSemaphoreSubmitInfo.Buffer pSignalSemaphoreInfos) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVkSubmitInfo2instance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkSubmitInfo2instance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkSubmitInfo2instance allocated withBufferUtils. -
create
Returns a newVkSubmitInfo2instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkSubmitInfo2.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkSubmitInfo2.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkSubmitInfo2.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkSubmitInfo2.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkSubmitInfo2instance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkSubmitInfo2instance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkSubmitInfo2.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkSubmitInfo2.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nsType
public static int nsType(long struct) Unsafe version ofsType(). -
npNext
public static long npNext(long struct) Unsafe version ofpNext(). -
nflags
public static int nflags(long struct) Unsafe version offlags(). -
nwaitSemaphoreInfoCount
public static int nwaitSemaphoreInfoCount(long struct) Unsafe version ofwaitSemaphoreInfoCount(). -
npWaitSemaphoreInfos
Unsafe version ofpWaitSemaphoreInfos(). -
ncommandBufferInfoCount
public static int ncommandBufferInfoCount(long struct) Unsafe version ofcommandBufferInfoCount(). -
npCommandBufferInfos
Unsafe version ofpCommandBufferInfos(). -
nsignalSemaphoreInfoCount
public static int nsignalSemaphoreInfoCount(long struct) Unsafe version ofsignalSemaphoreInfoCount(). -
npSignalSemaphoreInfos
Unsafe version ofpSignalSemaphoreInfos(). -
nsType
public static void nsType(long struct, int value) Unsafe version ofsType. -
npNext
public static void npNext(long struct, long value) Unsafe version ofpNext. -
nflags
public static void nflags(long struct, int value) Unsafe version offlags. -
nwaitSemaphoreInfoCount
public static void nwaitSemaphoreInfoCount(long struct, int value) Sets the specified value to thewaitSemaphoreInfoCountfield of the specifiedstruct. -
npWaitSemaphoreInfos
Unsafe version ofpWaitSemaphoreInfos. -
ncommandBufferInfoCount
public static void ncommandBufferInfoCount(long struct, int value) Sets the specified value to thecommandBufferInfoCountfield of the specifiedstruct. -
npCommandBufferInfos
public static void npCommandBufferInfos(long struct, @Nullable VkCommandBufferSubmitInfo.Buffer value) Unsafe version ofpCommandBufferInfos. -
nsignalSemaphoreInfoCount
public static void nsignalSemaphoreInfoCount(long struct, int value) Sets the specified value to thesignalSemaphoreInfoCountfield of the specifiedstruct. -
npSignalSemaphoreInfos
public static void npSignalSemaphoreInfos(long struct, @Nullable VkSemaphoreSubmitInfo.Buffer value) Unsafe version ofpSignalSemaphoreInfos. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-