Package org.lwjgl.vulkan
Class VkTimelineSemaphoreSubmitInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkTimelineSemaphoreSubmitInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkTimelineSemaphoreSubmitInfoKHR
public class VkTimelineSemaphoreSubmitInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying signal and wait values for timeline semaphores.Description
If the semaphore in
VkSubmitInfo::pWaitSemaphoresorVkSubmitInfo::pSignalSemaphorescorresponding to an entry inpWaitSemaphoreValuesorpSignalSemaphoreValuesrespectively was not created with aVkSemaphoreTypeofSEMAPHORE_TYPE_TIMELINE, the implementation must ignore the value in thepWaitSemaphoreValuesorpSignalSemaphoreValuesentry.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_TIMELINE_SEMAPHORE_SUBMIT_INFO- If
waitSemaphoreValueCountis not 0, andpWaitSemaphoreValuesis notNULL,pWaitSemaphoreValuesmust be a valid pointer to an array ofwaitSemaphoreValueCountuint64_tvalues - If
signalSemaphoreValueCountis not 0, andpSignalSemaphoreValuesis notNULL,pSignalSemaphoreValuesmust be a valid pointer to an array ofsignalSemaphoreValueCountuint64_tvalues
Layout
struct VkTimelineSemaphoreSubmitInfo { VkStructureTypesType(); void const *pNext(); uint32_twaitSemaphoreValueCount(); uint64_t const *pWaitSemaphoreValues(); uint32_tsignalSemaphoreValueCount(); uint64_t const *pSignalSemaphoreValues(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkTimelineSemaphoreSubmitInfo.BufferAn array ofVkTimelineSemaphoreSubmitInfostructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPNEXT
PSIGNALSEMAPHOREVALUES
PWAITSEMAPHOREVALUES
SIGNALSEMAPHOREVALUECOUNTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPE
WAITSEMAPHOREVALUECOUNTThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkTimelineSemaphoreSubmitInfo(java.nio.ByteBuffer container)Creates aVkTimelineSemaphoreSubmitInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkTimelineSemaphoreSubmitInfocalloc()Returns a newVkTimelineSemaphoreSubmitInfoinstance allocated withmemCalloc.static VkTimelineSemaphoreSubmitInfo.Buffercalloc(int capacity)Returns a newVkTimelineSemaphoreSubmitInfo.Bufferinstance allocated withmemCalloc.static VkTimelineSemaphoreSubmitInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkTimelineSemaphoreSubmitInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkTimelineSemaphoreSubmitInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkTimelineSemaphoreSubmitInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkTimelineSemaphoreSubmitInfocreate()Returns a newVkTimelineSemaphoreSubmitInfoinstance allocated withBufferUtils.static VkTimelineSemaphoreSubmitInfo.Buffercreate(int capacity)Returns a newVkTimelineSemaphoreSubmitInfo.Bufferinstance allocated withBufferUtils.static VkTimelineSemaphoreSubmitInfocreate(long address)Returns a newVkTimelineSemaphoreSubmitInfoinstance for the specified memory address.static VkTimelineSemaphoreSubmitInfo.Buffercreate(long address, int capacity)Create aVkTimelineSemaphoreSubmitInfo.Bufferinstance at the specified memory.static VkTimelineSemaphoreSubmitInfocreateSafe(long address)static VkTimelineSemaphoreSubmitInfo.BuffercreateSafe(long address, int capacity)static VkTimelineSemaphoreSubmitInfomalloc()Returns a newVkTimelineSemaphoreSubmitInfoinstance allocated withmemAlloc.static VkTimelineSemaphoreSubmitInfo.Buffermalloc(int capacity)Returns a newVkTimelineSemaphoreSubmitInfo.Bufferinstance allocated withmemAlloc.static VkTimelineSemaphoreSubmitInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkTimelineSemaphoreSubmitInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkTimelineSemaphoreSubmitInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkTimelineSemaphoreSubmitInfoinstance allocated on the specifiedMemoryStack.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static java.nio.LongBuffernpSignalSemaphoreValues(long struct)Unsafe version ofpSignalSemaphoreValues.static voidnpSignalSemaphoreValues(long struct, java.nio.LongBuffer value)Unsafe version ofpSignalSemaphoreValues.static java.nio.LongBuffernpWaitSemaphoreValues(long struct)Unsafe version ofpWaitSemaphoreValues.static voidnpWaitSemaphoreValues(long struct, java.nio.LongBuffer value)Unsafe version ofpWaitSemaphoreValues.static intnsignalSemaphoreValueCount(long struct)Unsafe version ofsignalSemaphoreValueCount().static voidnsignalSemaphoreValueCount(long struct, int value)Sets the specified value to thesignalSemaphoreValueCountfield of the specifiedstruct.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.static intnwaitSemaphoreValueCount(long struct)Unsafe version ofwaitSemaphoreValueCount().static voidnwaitSemaphoreValueCount(long struct, int value)Sets the specified value to thewaitSemaphoreValueCountfield of the specifiedstruct.longpNext()NULLor a pointer to a structure extending this structure.VkTimelineSemaphoreSubmitInfopNext(long value)Sets the specified value to thepNext()field.java.nio.LongBufferpSignalSemaphoreValues()a pointer to an arraysignalSemaphoreValueCountvalues for the corresponding semaphores inVkSubmitInfo::pSignalSemaphoresto set when signaled.VkTimelineSemaphoreSubmitInfopSignalSemaphoreValues(java.nio.LongBuffer value)Sets the address of the specifiedLongBufferto thepSignalSemaphoreValues()field.java.nio.LongBufferpWaitSemaphoreValues()a pointer to an array ofwaitSemaphoreValueCountvalues for the corresponding semaphores inVkSubmitInfo::pWaitSemaphoresto wait for.VkTimelineSemaphoreSubmitInfopWaitSemaphoreValues(java.nio.LongBuffer value)Sets the address of the specifiedLongBufferto thepWaitSemaphoreValues()field.VkTimelineSemaphoreSubmitInfoset(int sType, long pNext, int waitSemaphoreValueCount, java.nio.LongBuffer pWaitSemaphoreValues, int signalSemaphoreValueCount, java.nio.LongBuffer pSignalSemaphoreValues)Initializes this struct with the specified values.VkTimelineSemaphoreSubmitInfoset(VkTimelineSemaphoreSubmitInfo src)Copies the specified struct data to this struct.intsignalSemaphoreValueCount()the number of semaphore signal values specified inpSignalSemaphoreValues.VkTimelineSemaphoreSubmitInfosignalSemaphoreValueCount(int value)Sets the specified value to thesignalSemaphoreValueCount()field.intsizeof()intsType()the type of this structure.VkTimelineSemaphoreSubmitInfosType(int value)Sets the specified value to thesType()field.VkTimelineSemaphoreSubmitInfosType$Default()Sets theSTRUCTURE_TYPE_TIMELINE_SEMAPHORE_SUBMIT_INFOvalue to thesType()field.intwaitSemaphoreValueCount()the number of semaphore wait values specified inpWaitSemaphoreValues.VkTimelineSemaphoreSubmitInfowaitSemaphoreValueCount(int value)Sets the specified value to thewaitSemaphoreValueCount()field.
-
-
-
Constructor Detail
-
VkTimelineSemaphoreSubmitInfo
public VkTimelineSemaphoreSubmitInfo(java.nio.ByteBuffer container)
Creates aVkTimelineSemaphoreSubmitInfoinstance 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.
-
waitSemaphoreValueCount
public int waitSemaphoreValueCount()
the number of semaphore wait values specified inpWaitSemaphoreValues.
-
pWaitSemaphoreValues
@Nullable public java.nio.LongBuffer pWaitSemaphoreValues()
a pointer to an array ofwaitSemaphoreValueCountvalues for the corresponding semaphores inVkSubmitInfo::pWaitSemaphoresto wait for.
-
signalSemaphoreValueCount
public int signalSemaphoreValueCount()
the number of semaphore signal values specified inpSignalSemaphoreValues.
-
pSignalSemaphoreValues
@Nullable public java.nio.LongBuffer pSignalSemaphoreValues()
a pointer to an arraysignalSemaphoreValueCountvalues for the corresponding semaphores inVkSubmitInfo::pSignalSemaphoresto set when signaled.
-
sType
public VkTimelineSemaphoreSubmitInfo sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkTimelineSemaphoreSubmitInfo sType$Default()
Sets theSTRUCTURE_TYPE_TIMELINE_SEMAPHORE_SUBMIT_INFOvalue to thesType()field.
-
pNext
public VkTimelineSemaphoreSubmitInfo pNext(long value)
Sets the specified value to thepNext()field.
-
waitSemaphoreValueCount
public VkTimelineSemaphoreSubmitInfo waitSemaphoreValueCount(int value)
Sets the specified value to thewaitSemaphoreValueCount()field.
-
pWaitSemaphoreValues
public VkTimelineSemaphoreSubmitInfo pWaitSemaphoreValues(@Nullable java.nio.LongBuffer value)
Sets the address of the specifiedLongBufferto thepWaitSemaphoreValues()field.
-
signalSemaphoreValueCount
public VkTimelineSemaphoreSubmitInfo signalSemaphoreValueCount(int value)
Sets the specified value to thesignalSemaphoreValueCount()field.
-
pSignalSemaphoreValues
public VkTimelineSemaphoreSubmitInfo pSignalSemaphoreValues(@Nullable java.nio.LongBuffer value)
Sets the address of the specifiedLongBufferto thepSignalSemaphoreValues()field.
-
set
public VkTimelineSemaphoreSubmitInfo set(int sType, long pNext, int waitSemaphoreValueCount, @Nullable java.nio.LongBuffer pWaitSemaphoreValues, int signalSemaphoreValueCount, @Nullable java.nio.LongBuffer pSignalSemaphoreValues)
Initializes this struct with the specified values.
-
set
public VkTimelineSemaphoreSubmitInfo set(VkTimelineSemaphoreSubmitInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkTimelineSemaphoreSubmitInfo malloc()
Returns a newVkTimelineSemaphoreSubmitInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkTimelineSemaphoreSubmitInfo calloc()
Returns a newVkTimelineSemaphoreSubmitInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkTimelineSemaphoreSubmitInfo create()
Returns a newVkTimelineSemaphoreSubmitInfoinstance allocated withBufferUtils.
-
create
public static VkTimelineSemaphoreSubmitInfo create(long address)
Returns a newVkTimelineSemaphoreSubmitInfoinstance for the specified memory address.
-
createSafe
@Nullable public static VkTimelineSemaphoreSubmitInfo createSafe(long address)
-
malloc
public static VkTimelineSemaphoreSubmitInfo.Buffer malloc(int capacity)
Returns a newVkTimelineSemaphoreSubmitInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkTimelineSemaphoreSubmitInfo.Buffer calloc(int capacity)
Returns a newVkTimelineSemaphoreSubmitInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkTimelineSemaphoreSubmitInfo.Buffer create(int capacity)
Returns a newVkTimelineSemaphoreSubmitInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkTimelineSemaphoreSubmitInfo.Buffer create(long address, int capacity)
Create aVkTimelineSemaphoreSubmitInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkTimelineSemaphoreSubmitInfo.Buffer createSafe(long address, int capacity)
-
malloc
public static VkTimelineSemaphoreSubmitInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkTimelineSemaphoreSubmitInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkTimelineSemaphoreSubmitInfo calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkTimelineSemaphoreSubmitInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkTimelineSemaphoreSubmitInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkTimelineSemaphoreSubmitInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkTimelineSemaphoreSubmitInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkTimelineSemaphoreSubmitInfo.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().
-
nwaitSemaphoreValueCount
public static int nwaitSemaphoreValueCount(long struct)
Unsafe version ofwaitSemaphoreValueCount().
-
npWaitSemaphoreValues
@Nullable public static java.nio.LongBuffer npWaitSemaphoreValues(long struct)
Unsafe version ofpWaitSemaphoreValues.
-
nsignalSemaphoreValueCount
public static int nsignalSemaphoreValueCount(long struct)
Unsafe version ofsignalSemaphoreValueCount().
-
npSignalSemaphoreValues
@Nullable public static java.nio.LongBuffer npSignalSemaphoreValues(long struct)
Unsafe version ofpSignalSemaphoreValues.
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nwaitSemaphoreValueCount
public static void nwaitSemaphoreValueCount(long struct, int value)Sets the specified value to thewaitSemaphoreValueCountfield of the specifiedstruct.
-
npWaitSemaphoreValues
public static void npWaitSemaphoreValues(long struct, @Nullable java.nio.LongBuffer value)Unsafe version ofpWaitSemaphoreValues.
-
nsignalSemaphoreValueCount
public static void nsignalSemaphoreValueCount(long struct, int value)Sets the specified value to thesignalSemaphoreValueCountfield of the specifiedstruct.
-
npSignalSemaphoreValues
public static void npSignalSemaphoreValues(long struct, @Nullable java.nio.LongBuffer value)Unsafe version ofpSignalSemaphoreValues.
-
-