public class VkSemaphoreWaitInfoKHR
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
pSemaphores must reference a semaphore that was created with a VkSemaphoreTypeKHR of SEMAPHORE_TYPE_TIMELINE_KHRsType must be STRUCTURE_TYPE_SEMAPHORE_WAIT_INFO_KHRpNext must be NULLflags must be a valid combination of VkSemaphoreWaitFlagBitsKHR valuespSemaphores must be a valid pointer to an array of semaphoreCount valid VkSemaphore handlespValues must be a valid pointer to an array of semaphoreCount uint64_t valuessemaphoreCount must be greater than 0sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.flags – a bitmask of VkSemaphoreWaitFlagBitsKHR specifying additional parameters for the semaphore wait operation.semaphoreCount – the number of semaphores to wait on.pSemaphores – a pointer to an array of semaphoreCount semaphore handles to wait on.pValues – a pointer to an array of semaphoreCount timeline semaphore values.
struct VkSemaphoreWaitInfoKHR {
VkStructureType sType;
void const * pNext;
VkSemaphoreWaitFlagsKHR flags;
uint32_t semaphoreCount;
VkSemaphore const * pSemaphores;
uint64_t const * pValues;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkSemaphoreWaitInfoKHR.Buffer
An array of
VkSemaphoreWaitInfoKHR structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
FLAGS
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
PSEMAPHORES
The struct member offsets.
|
static int |
PVALUES
The struct member offsets.
|
static int |
SEMAPHORECOUNT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkSemaphoreWaitInfoKHR(java.nio.ByteBuffer container)
Creates a
VkSemaphoreWaitInfoKHR instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkSemaphoreWaitInfoKHR |
calloc()
Returns a new
VkSemaphoreWaitInfoKHR instance allocated with memCalloc. |
static VkSemaphoreWaitInfoKHR.Buffer |
calloc(int capacity)
Returns a new
VkSemaphoreWaitInfoKHR.Buffer instance allocated with memCalloc. |
static VkSemaphoreWaitInfoKHR |
callocStack()
Returns a new
VkSemaphoreWaitInfoKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkSemaphoreWaitInfoKHR.Buffer |
callocStack(int capacity)
Returns a new
VkSemaphoreWaitInfoKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkSemaphoreWaitInfoKHR.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkSemaphoreWaitInfoKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkSemaphoreWaitInfoKHR |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkSemaphoreWaitInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkSemaphoreWaitInfoKHR |
create()
Returns a new
VkSemaphoreWaitInfoKHR instance allocated with BufferUtils. |
static VkSemaphoreWaitInfoKHR.Buffer |
create(int capacity)
Returns a new
VkSemaphoreWaitInfoKHR.Buffer instance allocated with BufferUtils. |
static VkSemaphoreWaitInfoKHR |
create(long address)
Returns a new
VkSemaphoreWaitInfoKHR instance for the specified memory address. |
static VkSemaphoreWaitInfoKHR.Buffer |
create(long address,
int capacity)
Create a
VkSemaphoreWaitInfoKHR.Buffer instance at the specified memory. |
static VkSemaphoreWaitInfoKHR |
createSafe(long address)
|
static VkSemaphoreWaitInfoKHR.Buffer |
createSafe(long address,
int capacity)
|
int |
flags()
Returns the value of the
flags field. |
VkSemaphoreWaitInfoKHR |
flags(int value)
Sets the specified value to the
flags field. |
static VkSemaphoreWaitInfoKHR |
malloc()
Returns a new
VkSemaphoreWaitInfoKHR instance allocated with memAlloc. |
static VkSemaphoreWaitInfoKHR.Buffer |
malloc(int capacity)
Returns a new
VkSemaphoreWaitInfoKHR.Buffer instance allocated with memAlloc. |
static VkSemaphoreWaitInfoKHR |
mallocStack()
Returns a new
VkSemaphoreWaitInfoKHR instance allocated on the thread-local MemoryStack. |
static VkSemaphoreWaitInfoKHR.Buffer |
mallocStack(int capacity)
Returns a new
VkSemaphoreWaitInfoKHR.Buffer instance allocated on the thread-local MemoryStack. |
static VkSemaphoreWaitInfoKHR.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkSemaphoreWaitInfoKHR.Buffer instance allocated on the specified MemoryStack. |
static VkSemaphoreWaitInfoKHR |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkSemaphoreWaitInfoKHR instance allocated on the specified MemoryStack. |
static int |
nflags(long struct)
Unsafe version of
flags(). |
static void |
nflags(long struct,
int value)
Unsafe version of
flags. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static java.nio.LongBuffer |
npSemaphores(long struct)
Unsafe version of
pSemaphores. |
static void |
npSemaphores(long struct,
java.nio.LongBuffer value)
Unsafe version of
pSemaphores. |
static java.nio.LongBuffer |
npValues(long struct)
Unsafe version of
pValues. |
static void |
npValues(long struct,
java.nio.LongBuffer value)
Unsafe version of
pValues. |
static int |
nsemaphoreCount(long struct)
Unsafe version of
semaphoreCount(). |
static void |
nsemaphoreCount(long struct,
int value)
Sets the specified value to the
semaphoreCount field of the specified struct. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
long |
pNext()
Returns the value of the
pNext field. |
VkSemaphoreWaitInfoKHR |
pNext(long value)
Sets the specified value to the
pNext field. |
java.nio.LongBuffer |
pSemaphores()
Returns a
LongBuffer view of the data pointed to by the pSemaphores field. |
VkSemaphoreWaitInfoKHR |
pSemaphores(java.nio.LongBuffer value)
Sets the address of the specified
LongBuffer to the pSemaphores field. |
java.nio.LongBuffer |
pValues()
Returns a
LongBuffer view of the data pointed to by the pValues field. |
VkSemaphoreWaitInfoKHR |
pValues(java.nio.LongBuffer value)
Sets the address of the specified
LongBuffer to the pValues field. |
int |
semaphoreCount()
Returns the value of the
semaphoreCount field. |
VkSemaphoreWaitInfoKHR |
semaphoreCount(int value)
Sets the specified value to the
semaphoreCount field. |
VkSemaphoreWaitInfoKHR |
set(int sType,
long pNext,
int flags,
int semaphoreCount,
java.nio.LongBuffer pSemaphores,
java.nio.LongBuffer pValues)
Initializes this struct with the specified values.
|
VkSemaphoreWaitInfoKHR |
set(VkSemaphoreWaitInfoKHR src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkSemaphoreWaitInfoKHR |
sType(int value)
Sets the specified value to the
sType field. |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int FLAGS
public static final int SEMAPHORECOUNT
public static final int PSEMAPHORES
public static final int PVALUES
public VkSemaphoreWaitInfoKHR(java.nio.ByteBuffer container)
VkSemaphoreWaitInfoKHR instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int sType()
sType field.public long pNext()
pNext field.public int flags()
flags field.public int semaphoreCount()
semaphoreCount field.public java.nio.LongBuffer pSemaphores()
LongBuffer view of the data pointed to by the pSemaphores field.public java.nio.LongBuffer pValues()
LongBuffer view of the data pointed to by the pValues field.public VkSemaphoreWaitInfoKHR sType(int value)
sType field.public VkSemaphoreWaitInfoKHR pNext(long value)
pNext field.public VkSemaphoreWaitInfoKHR flags(int value)
flags field.public VkSemaphoreWaitInfoKHR semaphoreCount(int value)
semaphoreCount field.public VkSemaphoreWaitInfoKHR pSemaphores(java.nio.LongBuffer value)
LongBuffer to the pSemaphores field.public VkSemaphoreWaitInfoKHR pValues(java.nio.LongBuffer value)
LongBuffer to the pValues field.public VkSemaphoreWaitInfoKHR set(int sType, long pNext, int flags, int semaphoreCount, java.nio.LongBuffer pSemaphores, java.nio.LongBuffer pValues)
public VkSemaphoreWaitInfoKHR set(VkSemaphoreWaitInfoKHR src)
src - the source structpublic static VkSemaphoreWaitInfoKHR malloc()
VkSemaphoreWaitInfoKHR instance allocated with memAlloc. The instance must be explicitly freed.public static VkSemaphoreWaitInfoKHR calloc()
VkSemaphoreWaitInfoKHR instance allocated with memCalloc. The instance must be explicitly freed.public static VkSemaphoreWaitInfoKHR create()
VkSemaphoreWaitInfoKHR instance allocated with BufferUtils.public static VkSemaphoreWaitInfoKHR create(long address)
VkSemaphoreWaitInfoKHR instance for the specified memory address.@Nullable public static VkSemaphoreWaitInfoKHR createSafe(long address)
public static VkSemaphoreWaitInfoKHR.Buffer malloc(int capacity)
VkSemaphoreWaitInfoKHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkSemaphoreWaitInfoKHR.Buffer calloc(int capacity)
VkSemaphoreWaitInfoKHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkSemaphoreWaitInfoKHR.Buffer create(int capacity)
VkSemaphoreWaitInfoKHR.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkSemaphoreWaitInfoKHR.Buffer create(long address, int capacity)
VkSemaphoreWaitInfoKHR.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkSemaphoreWaitInfoKHR.Buffer createSafe(long address, int capacity)
public static VkSemaphoreWaitInfoKHR mallocStack()
VkSemaphoreWaitInfoKHR instance allocated on the thread-local MemoryStack.public static VkSemaphoreWaitInfoKHR callocStack()
VkSemaphoreWaitInfoKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkSemaphoreWaitInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
VkSemaphoreWaitInfoKHR instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkSemaphoreWaitInfoKHR callocStack(org.lwjgl.system.MemoryStack stack)
VkSemaphoreWaitInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkSemaphoreWaitInfoKHR.Buffer mallocStack(int capacity)
VkSemaphoreWaitInfoKHR.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkSemaphoreWaitInfoKHR.Buffer callocStack(int capacity)
VkSemaphoreWaitInfoKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkSemaphoreWaitInfoKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkSemaphoreWaitInfoKHR.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkSemaphoreWaitInfoKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkSemaphoreWaitInfoKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static int nflags(long struct)
flags().public static int nsemaphoreCount(long struct)
semaphoreCount().public static java.nio.LongBuffer npSemaphores(long struct)
pSemaphores.public static java.nio.LongBuffer npValues(long struct)
pValues.public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nflags(long struct,
int value)
flags.public static void nsemaphoreCount(long struct,
int value)
semaphoreCount field of the specified struct.public static void npSemaphores(long struct,
java.nio.LongBuffer value)
pSemaphores.public static void npValues(long struct,
java.nio.LongBuffer value)
pValues.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.