public class VkSemaphoreTypeCreateInfoKHR
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
sType must be STRUCTURE_TYPE_SEMAPHORE_TYPE_CREATE_INFO_KHRsemaphoreType must be a valid VkSemaphoreTypeKHR valuetimelineSemaphore feature is not enabled, semaphoreType must not equal SEMAPHORE_TYPE_TIMELINE_KHRsemaphoreType is SEMAPHORE_TYPE_BINARY_KHR, initialValue must be zero.If no VkSemaphoreTypeCreateInfoKHR structure is included in the pNext chain of VkSemaphoreCreateInfo, then the created semaphore will have a default VkSemaphoreTypeKHR of SEMAPHORE_TYPE_BINARY_KHR.
sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.semaphoreType – a VkSemaphoreTypeKHR value specifying the type of the semaphore.initialValue – the initial payload value if semaphoreType is SEMAPHORE_TYPE_TIMELINE_KHR.
struct VkSemaphoreTypeCreateInfoKHR {
VkStructureType sType;
void const * pNext;
VkSemaphoreTypeKHR semaphoreType;
uint64_t initialValue;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkSemaphoreTypeCreateInfoKHR.Buffer
An array of
VkSemaphoreTypeCreateInfoKHR structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
INITIALVALUE
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SEMAPHORETYPE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkSemaphoreTypeCreateInfoKHR(java.nio.ByteBuffer container)
Creates a
VkSemaphoreTypeCreateInfoKHR instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkSemaphoreTypeCreateInfoKHR |
calloc()
Returns a new
VkSemaphoreTypeCreateInfoKHR instance allocated with memCalloc. |
static VkSemaphoreTypeCreateInfoKHR.Buffer |
calloc(int capacity)
Returns a new
VkSemaphoreTypeCreateInfoKHR.Buffer instance allocated with memCalloc. |
static VkSemaphoreTypeCreateInfoKHR |
callocStack()
Returns a new
VkSemaphoreTypeCreateInfoKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkSemaphoreTypeCreateInfoKHR.Buffer |
callocStack(int capacity)
Returns a new
VkSemaphoreTypeCreateInfoKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkSemaphoreTypeCreateInfoKHR.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkSemaphoreTypeCreateInfoKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkSemaphoreTypeCreateInfoKHR |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkSemaphoreTypeCreateInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkSemaphoreTypeCreateInfoKHR |
create()
Returns a new
VkSemaphoreTypeCreateInfoKHR instance allocated with BufferUtils. |
static VkSemaphoreTypeCreateInfoKHR.Buffer |
create(int capacity)
Returns a new
VkSemaphoreTypeCreateInfoKHR.Buffer instance allocated with BufferUtils. |
static VkSemaphoreTypeCreateInfoKHR |
create(long address)
Returns a new
VkSemaphoreTypeCreateInfoKHR instance for the specified memory address. |
static VkSemaphoreTypeCreateInfoKHR.Buffer |
create(long address,
int capacity)
Create a
VkSemaphoreTypeCreateInfoKHR.Buffer instance at the specified memory. |
static VkSemaphoreTypeCreateInfoKHR |
createSafe(long address)
|
static VkSemaphoreTypeCreateInfoKHR.Buffer |
createSafe(long address,
int capacity)
|
long |
initialValue()
Returns the value of the
initialValue field. |
VkSemaphoreTypeCreateInfoKHR |
initialValue(long value)
Sets the specified value to the
initialValue field. |
static VkSemaphoreTypeCreateInfoKHR |
malloc()
Returns a new
VkSemaphoreTypeCreateInfoKHR instance allocated with memAlloc. |
static VkSemaphoreTypeCreateInfoKHR.Buffer |
malloc(int capacity)
Returns a new
VkSemaphoreTypeCreateInfoKHR.Buffer instance allocated with memAlloc. |
static VkSemaphoreTypeCreateInfoKHR |
mallocStack()
Returns a new
VkSemaphoreTypeCreateInfoKHR instance allocated on the thread-local MemoryStack. |
static VkSemaphoreTypeCreateInfoKHR.Buffer |
mallocStack(int capacity)
Returns a new
VkSemaphoreTypeCreateInfoKHR.Buffer instance allocated on the thread-local MemoryStack. |
static VkSemaphoreTypeCreateInfoKHR.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkSemaphoreTypeCreateInfoKHR.Buffer instance allocated on the specified MemoryStack. |
static VkSemaphoreTypeCreateInfoKHR |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkSemaphoreTypeCreateInfoKHR instance allocated on the specified MemoryStack. |
static long |
ninitialValue(long struct)
Unsafe version of
initialValue(). |
static void |
ninitialValue(long struct,
long value)
Unsafe version of
initialValue. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
nsemaphoreType(long struct)
Unsafe version of
semaphoreType(). |
static void |
nsemaphoreType(long struct,
int value)
Unsafe version of
semaphoreType. |
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. |
VkSemaphoreTypeCreateInfoKHR |
pNext(long value)
Sets the specified value to the
pNext field. |
int |
semaphoreType()
Returns the value of the
semaphoreType field. |
VkSemaphoreTypeCreateInfoKHR |
semaphoreType(int value)
Sets the specified value to the
semaphoreType field. |
VkSemaphoreTypeCreateInfoKHR |
set(int sType,
long pNext,
int semaphoreType,
long initialValue)
Initializes this struct with the specified values.
|
VkSemaphoreTypeCreateInfoKHR |
set(VkSemaphoreTypeCreateInfoKHR src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkSemaphoreTypeCreateInfoKHR |
sType(int value)
Sets the specified value to the
sType field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int SEMAPHORETYPE
public static final int INITIALVALUE
public VkSemaphoreTypeCreateInfoKHR(java.nio.ByteBuffer container)
VkSemaphoreTypeCreateInfoKHR 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 semaphoreType()
semaphoreType field.public long initialValue()
initialValue field.public VkSemaphoreTypeCreateInfoKHR sType(int value)
sType field.public VkSemaphoreTypeCreateInfoKHR pNext(long value)
pNext field.public VkSemaphoreTypeCreateInfoKHR semaphoreType(int value)
semaphoreType field.public VkSemaphoreTypeCreateInfoKHR initialValue(long value)
initialValue field.public VkSemaphoreTypeCreateInfoKHR set(int sType, long pNext, int semaphoreType, long initialValue)
public VkSemaphoreTypeCreateInfoKHR set(VkSemaphoreTypeCreateInfoKHR src)
src - the source structpublic static VkSemaphoreTypeCreateInfoKHR malloc()
VkSemaphoreTypeCreateInfoKHR instance allocated with memAlloc. The instance must be explicitly freed.public static VkSemaphoreTypeCreateInfoKHR calloc()
VkSemaphoreTypeCreateInfoKHR instance allocated with memCalloc. The instance must be explicitly freed.public static VkSemaphoreTypeCreateInfoKHR create()
VkSemaphoreTypeCreateInfoKHR instance allocated with BufferUtils.public static VkSemaphoreTypeCreateInfoKHR create(long address)
VkSemaphoreTypeCreateInfoKHR instance for the specified memory address.@Nullable public static VkSemaphoreTypeCreateInfoKHR createSafe(long address)
public static VkSemaphoreTypeCreateInfoKHR.Buffer malloc(int capacity)
VkSemaphoreTypeCreateInfoKHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkSemaphoreTypeCreateInfoKHR.Buffer calloc(int capacity)
VkSemaphoreTypeCreateInfoKHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkSemaphoreTypeCreateInfoKHR.Buffer create(int capacity)
VkSemaphoreTypeCreateInfoKHR.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkSemaphoreTypeCreateInfoKHR.Buffer create(long address, int capacity)
VkSemaphoreTypeCreateInfoKHR.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkSemaphoreTypeCreateInfoKHR.Buffer createSafe(long address, int capacity)
public static VkSemaphoreTypeCreateInfoKHR mallocStack()
VkSemaphoreTypeCreateInfoKHR instance allocated on the thread-local MemoryStack.public static VkSemaphoreTypeCreateInfoKHR callocStack()
VkSemaphoreTypeCreateInfoKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkSemaphoreTypeCreateInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
VkSemaphoreTypeCreateInfoKHR instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkSemaphoreTypeCreateInfoKHR callocStack(org.lwjgl.system.MemoryStack stack)
VkSemaphoreTypeCreateInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkSemaphoreTypeCreateInfoKHR.Buffer mallocStack(int capacity)
VkSemaphoreTypeCreateInfoKHR.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkSemaphoreTypeCreateInfoKHR.Buffer callocStack(int capacity)
VkSemaphoreTypeCreateInfoKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkSemaphoreTypeCreateInfoKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkSemaphoreTypeCreateInfoKHR.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkSemaphoreTypeCreateInfoKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkSemaphoreTypeCreateInfoKHR.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 nsemaphoreType(long struct)
semaphoreType().public static long ninitialValue(long struct)
initialValue().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nsemaphoreType(long struct,
int value)
semaphoreType.public static void ninitialValue(long struct,
long value)
initialValue.Copyright LWJGL. All Rights Reserved. License terms.