Package org.lwjgl.vulkan
Class VkSemaphoreWaitInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkSemaphoreWaitInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkSemaphoreWaitInfoKHR
public class VkSemaphoreWaitInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure containing information about the semaphore wait condition.Valid Usage
- All of the elements of
pSemaphoresmust reference a semaphore that was created with aVkSemaphoreTypeofSEMAPHORE_TYPE_TIMELINE
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_SEMAPHORE_WAIT_INFOpNextmust beNULLflagsmust be a valid combination ofVkSemaphoreWaitFlagBitsvaluespSemaphoresmust be a valid pointer to an array ofsemaphoreCountvalidVkSemaphorehandlespValuesmust be a valid pointer to an array ofsemaphoreCountuint64_tvaluessemaphoreCountmust be greater than 0
See Also
WaitSemaphores,WaitSemaphoresKHRLayout
struct VkSemaphoreWaitInfo { VkStructureTypesType(); void const *pNext(); VkSemaphoreWaitFlagsflags(); uint32_tsemaphoreCount(); VkSemaphore const *pSemaphores(); uint64_t const *pValues(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkSemaphoreWaitInfo.BufferAn array ofVkSemaphoreWaitInfostructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intFLAGS
PNEXT
PSEMAPHORES
PVALUES
SEMAPHORECOUNTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkSemaphoreWaitInfo(java.nio.ByteBuffer container)Creates aVkSemaphoreWaitInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkSemaphoreWaitInfocalloc()Returns a newVkSemaphoreWaitInfoinstance allocated withmemCalloc.static VkSemaphoreWaitInfo.Buffercalloc(int capacity)Returns a newVkSemaphoreWaitInfo.Bufferinstance allocated withmemCalloc.static VkSemaphoreWaitInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkSemaphoreWaitInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSemaphoreWaitInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkSemaphoreWaitInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSemaphoreWaitInfocreate()Returns a newVkSemaphoreWaitInfoinstance allocated withBufferUtils.static VkSemaphoreWaitInfo.Buffercreate(int capacity)Returns a newVkSemaphoreWaitInfo.Bufferinstance allocated withBufferUtils.static VkSemaphoreWaitInfocreate(long address)Returns a newVkSemaphoreWaitInfoinstance for the specified memory address.static VkSemaphoreWaitInfo.Buffercreate(long address, int capacity)Create aVkSemaphoreWaitInfo.Bufferinstance at the specified memory.static VkSemaphoreWaitInfocreateSafe(long address)static VkSemaphoreWaitInfo.BuffercreateSafe(long address, int capacity)intflags()a bitmask ofVkSemaphoreWaitFlagBitsspecifying additional parameters for the semaphore wait operation.VkSemaphoreWaitInfoflags(int value)Sets the specified value to theflags()field.static VkSemaphoreWaitInfomalloc()Returns a newVkSemaphoreWaitInfoinstance allocated withmemAlloc.static VkSemaphoreWaitInfo.Buffermalloc(int capacity)Returns a newVkSemaphoreWaitInfo.Bufferinstance allocated withmemAlloc.static VkSemaphoreWaitInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkSemaphoreWaitInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkSemaphoreWaitInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkSemaphoreWaitInfoinstance allocated on the specifiedMemoryStack.static intnflags(long struct)Unsafe version offlags().static voidnflags(long struct, int value)Unsafe version offlags.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static java.nio.LongBuffernpSemaphores(long struct)Unsafe version ofpSemaphores.static voidnpSemaphores(long struct, java.nio.LongBuffer value)Unsafe version ofpSemaphores.static java.nio.LongBuffernpValues(long struct)Unsafe version ofpValues.static voidnpValues(long struct, java.nio.LongBuffer value)Unsafe version ofpValues.static intnsemaphoreCount(long struct)Unsafe version ofsemaphoreCount().static voidnsemaphoreCount(long struct, int value)Sets the specified value to thesemaphoreCountfield of the specifiedstruct.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.VkSemaphoreWaitInfopNext(long value)Sets the specified value to thepNext()field.java.nio.LongBufferpSemaphores()a pointer to an array ofsemaphoreCountsemaphore handles to wait on.VkSemaphoreWaitInfopSemaphores(java.nio.LongBuffer value)Sets the address of the specifiedLongBufferto thepSemaphores()field.java.nio.LongBufferpValues()a pointer to an array ofsemaphoreCounttimeline semaphore values.VkSemaphoreWaitInfopValues(java.nio.LongBuffer value)Sets the address of the specifiedLongBufferto thepValues()field.intsemaphoreCount()the number of semaphores to wait on.VkSemaphoreWaitInfosemaphoreCount(int value)Sets the specified value to thesemaphoreCount()field.VkSemaphoreWaitInfoset(int sType, long pNext, int flags, int semaphoreCount, java.nio.LongBuffer pSemaphores, java.nio.LongBuffer pValues)Initializes this struct with the specified values.VkSemaphoreWaitInfoset(VkSemaphoreWaitInfo src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkSemaphoreWaitInfosType(int value)Sets the specified value to thesType()field.VkSemaphoreWaitInfosType$Default()Sets theSTRUCTURE_TYPE_SEMAPHORE_WAIT_INFOvalue to thesType()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
VkSemaphoreWaitInfo
public VkSemaphoreWaitInfo(java.nio.ByteBuffer container)
Creates aVkSemaphoreWaitInfoinstance 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.
-
flags
public int flags()
a bitmask ofVkSemaphoreWaitFlagBitsspecifying additional parameters for the semaphore wait operation.
-
semaphoreCount
public int semaphoreCount()
the number of semaphores to wait on.
-
pSemaphores
public java.nio.LongBuffer pSemaphores()
a pointer to an array ofsemaphoreCountsemaphore handles to wait on.
-
pValues
public java.nio.LongBuffer pValues()
a pointer to an array ofsemaphoreCounttimeline semaphore values.
-
sType
public VkSemaphoreWaitInfo sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkSemaphoreWaitInfo sType$Default()
Sets theSTRUCTURE_TYPE_SEMAPHORE_WAIT_INFOvalue to thesType()field.
-
pNext
public VkSemaphoreWaitInfo pNext(long value)
Sets the specified value to thepNext()field.
-
flags
public VkSemaphoreWaitInfo flags(int value)
Sets the specified value to theflags()field.
-
semaphoreCount
public VkSemaphoreWaitInfo semaphoreCount(int value)
Sets the specified value to thesemaphoreCount()field.
-
pSemaphores
public VkSemaphoreWaitInfo pSemaphores(java.nio.LongBuffer value)
Sets the address of the specifiedLongBufferto thepSemaphores()field.
-
pValues
public VkSemaphoreWaitInfo pValues(java.nio.LongBuffer value)
Sets the address of the specifiedLongBufferto thepValues()field.
-
set
public VkSemaphoreWaitInfo set(int sType, long pNext, int flags, int semaphoreCount, java.nio.LongBuffer pSemaphores, java.nio.LongBuffer pValues)
Initializes this struct with the specified values.
-
set
public VkSemaphoreWaitInfo set(VkSemaphoreWaitInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkSemaphoreWaitInfo malloc()
Returns a newVkSemaphoreWaitInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkSemaphoreWaitInfo calloc()
Returns a newVkSemaphoreWaitInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkSemaphoreWaitInfo create()
Returns a newVkSemaphoreWaitInfoinstance allocated withBufferUtils.
-
create
public static VkSemaphoreWaitInfo create(long address)
Returns a newVkSemaphoreWaitInfoinstance for the specified memory address.
-
createSafe
@Nullable public static VkSemaphoreWaitInfo createSafe(long address)
-
malloc
public static VkSemaphoreWaitInfo.Buffer malloc(int capacity)
Returns a newVkSemaphoreWaitInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkSemaphoreWaitInfo.Buffer calloc(int capacity)
Returns a newVkSemaphoreWaitInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkSemaphoreWaitInfo.Buffer create(int capacity)
Returns a newVkSemaphoreWaitInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkSemaphoreWaitInfo.Buffer create(long address, int capacity)
Create aVkSemaphoreWaitInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkSemaphoreWaitInfo.Buffer createSafe(long address, int capacity)
-
malloc
public static VkSemaphoreWaitInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkSemaphoreWaitInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkSemaphoreWaitInfo calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkSemaphoreWaitInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkSemaphoreWaitInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSemaphoreWaitInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkSemaphoreWaitInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSemaphoreWaitInfo.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().
-
nflags
public static int nflags(long struct)
Unsafe version offlags().
-
nsemaphoreCount
public static int nsemaphoreCount(long struct)
Unsafe version ofsemaphoreCount().
-
npSemaphores
public static java.nio.LongBuffer npSemaphores(long struct)
Unsafe version ofpSemaphores.
-
npValues
public static java.nio.LongBuffer npValues(long struct)
Unsafe version ofpValues.
-
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.
-
nsemaphoreCount
public static void nsemaphoreCount(long struct, int value)Sets the specified value to thesemaphoreCountfield of the specifiedstruct.
-
npSemaphores
public static void npSemaphores(long struct, java.nio.LongBuffer value)Unsafe version ofpSemaphores.
-
npValues
public static void npValues(long struct, java.nio.LongBuffer value)Unsafe version ofpValues.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-