public class VkSemaphoreGetWin32HandleInfoKHR
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
The properties of the handle returned depend on the value of handleType. See VkExternalSemaphoreHandleTypeFlagBits for a description of the properties of the defined external semaphore handle types.
handleType must have been included in VkExportSemaphoreCreateInfo::handleTypes when the semaphore’s current payload was created.handleType is defined as an NT handle, GetSemaphoreWin32HandleKHR must be called no more than once for each valid unique combination of semaphore and handleType.semaphore must not currently have its payload replaced by an imported payload as described below in Importing Semaphore Payloads unless that imported payload’s handle type was included in VkExternalSemaphoreProperties::exportFromImportedHandleTypes for handleType.handleType refers to a handle type with copy payload transference semantics, as defined below in Importing Semaphore Payloads, there must be no queue waiting on semaphore.handleType refers to a handle type with copy payload transference semantics, semaphore must be signaled, or have an associated semaphore signal operation pending execution.handleType must be defined as an NT handle or a global share handle.sType must be STRUCTURE_TYPE_SEMAPHORE_GET_WIN32_HANDLE_INFO_KHRpNext must be NULLsemaphore must be a valid VkSemaphore handlehandleType must be a valid VkExternalSemaphoreHandleTypeFlagBits valuesType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.semaphore – the semaphore from which state will be exported.handleType – the type of handle requested.
struct VkSemaphoreGetWin32HandleInfoKHR {
VkStructureType sType;
void const * pNext;
VkSemaphore semaphore;
VkExternalSemaphoreHandleTypeFlagBits handleType;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkSemaphoreGetWin32HandleInfoKHR.Buffer
An array of
VkSemaphoreGetWin32HandleInfoKHR structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
HANDLETYPE
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SEMAPHORE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkSemaphoreGetWin32HandleInfoKHR(java.nio.ByteBuffer container)
Creates a
VkSemaphoreGetWin32HandleInfoKHR instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkSemaphoreGetWin32HandleInfoKHR |
calloc()
Returns a new
VkSemaphoreGetWin32HandleInfoKHR instance allocated with memCalloc. |
static VkSemaphoreGetWin32HandleInfoKHR.Buffer |
calloc(int capacity)
Returns a new
VkSemaphoreGetWin32HandleInfoKHR.Buffer instance allocated with memCalloc. |
static VkSemaphoreGetWin32HandleInfoKHR |
callocStack()
Returns a new
VkSemaphoreGetWin32HandleInfoKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkSemaphoreGetWin32HandleInfoKHR.Buffer |
callocStack(int capacity)
Returns a new
VkSemaphoreGetWin32HandleInfoKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkSemaphoreGetWin32HandleInfoKHR.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkSemaphoreGetWin32HandleInfoKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkSemaphoreGetWin32HandleInfoKHR |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkSemaphoreGetWin32HandleInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkSemaphoreGetWin32HandleInfoKHR |
create()
Returns a new
VkSemaphoreGetWin32HandleInfoKHR instance allocated with BufferUtils. |
static VkSemaphoreGetWin32HandleInfoKHR.Buffer |
create(int capacity)
Returns a new
VkSemaphoreGetWin32HandleInfoKHR.Buffer instance allocated with BufferUtils. |
static VkSemaphoreGetWin32HandleInfoKHR |
create(long address)
Returns a new
VkSemaphoreGetWin32HandleInfoKHR instance for the specified memory address. |
static VkSemaphoreGetWin32HandleInfoKHR.Buffer |
create(long address,
int capacity)
Create a
VkSemaphoreGetWin32HandleInfoKHR.Buffer instance at the specified memory. |
static VkSemaphoreGetWin32HandleInfoKHR |
createSafe(long address)
|
static VkSemaphoreGetWin32HandleInfoKHR.Buffer |
createSafe(long address,
int capacity)
|
int |
handleType()
Returns the value of the
handleType field. |
VkSemaphoreGetWin32HandleInfoKHR |
handleType(int value)
Sets the specified value to the
handleType field. |
static VkSemaphoreGetWin32HandleInfoKHR |
malloc()
Returns a new
VkSemaphoreGetWin32HandleInfoKHR instance allocated with memAlloc. |
static VkSemaphoreGetWin32HandleInfoKHR.Buffer |
malloc(int capacity)
Returns a new
VkSemaphoreGetWin32HandleInfoKHR.Buffer instance allocated with memAlloc. |
static VkSemaphoreGetWin32HandleInfoKHR |
mallocStack()
Returns a new
VkSemaphoreGetWin32HandleInfoKHR instance allocated on the thread-local MemoryStack. |
static VkSemaphoreGetWin32HandleInfoKHR.Buffer |
mallocStack(int capacity)
Returns a new
VkSemaphoreGetWin32HandleInfoKHR.Buffer instance allocated on the thread-local MemoryStack. |
static VkSemaphoreGetWin32HandleInfoKHR.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkSemaphoreGetWin32HandleInfoKHR.Buffer instance allocated on the specified MemoryStack. |
static VkSemaphoreGetWin32HandleInfoKHR |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkSemaphoreGetWin32HandleInfoKHR instance allocated on the specified MemoryStack. |
static int |
nhandleType(long struct)
Unsafe version of
handleType(). |
static void |
nhandleType(long struct,
int value)
Unsafe version of
handleType. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static long |
nsemaphore(long struct)
Unsafe version of
semaphore(). |
static void |
nsemaphore(long struct,
long value)
Unsafe version of
semaphore. |
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. |
VkSemaphoreGetWin32HandleInfoKHR |
pNext(long value)
Sets the specified value to the
pNext field. |
long |
semaphore()
Returns the value of the
semaphore field. |
VkSemaphoreGetWin32HandleInfoKHR |
semaphore(long value)
Sets the specified value to the
semaphore field. |
VkSemaphoreGetWin32HandleInfoKHR |
set(int sType,
long pNext,
long semaphore,
int handleType)
Initializes this struct with the specified values.
|
VkSemaphoreGetWin32HandleInfoKHR |
set(VkSemaphoreGetWin32HandleInfoKHR src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkSemaphoreGetWin32HandleInfoKHR |
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 SEMAPHORE
public static final int HANDLETYPE
public VkSemaphoreGetWin32HandleInfoKHR(java.nio.ByteBuffer container)
VkSemaphoreGetWin32HandleInfoKHR 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 long semaphore()
semaphore field.public int handleType()
handleType field.public VkSemaphoreGetWin32HandleInfoKHR sType(int value)
sType field.public VkSemaphoreGetWin32HandleInfoKHR pNext(long value)
pNext field.public VkSemaphoreGetWin32HandleInfoKHR semaphore(long value)
semaphore field.public VkSemaphoreGetWin32HandleInfoKHR handleType(int value)
handleType field.public VkSemaphoreGetWin32HandleInfoKHR set(int sType, long pNext, long semaphore, int handleType)
public VkSemaphoreGetWin32HandleInfoKHR set(VkSemaphoreGetWin32HandleInfoKHR src)
src - the source structpublic static VkSemaphoreGetWin32HandleInfoKHR malloc()
VkSemaphoreGetWin32HandleInfoKHR instance allocated with memAlloc. The instance must be explicitly freed.public static VkSemaphoreGetWin32HandleInfoKHR calloc()
VkSemaphoreGetWin32HandleInfoKHR instance allocated with memCalloc. The instance must be explicitly freed.public static VkSemaphoreGetWin32HandleInfoKHR create()
VkSemaphoreGetWin32HandleInfoKHR instance allocated with BufferUtils.public static VkSemaphoreGetWin32HandleInfoKHR create(long address)
VkSemaphoreGetWin32HandleInfoKHR instance for the specified memory address.@Nullable public static VkSemaphoreGetWin32HandleInfoKHR createSafe(long address)
public static VkSemaphoreGetWin32HandleInfoKHR.Buffer malloc(int capacity)
VkSemaphoreGetWin32HandleInfoKHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkSemaphoreGetWin32HandleInfoKHR.Buffer calloc(int capacity)
VkSemaphoreGetWin32HandleInfoKHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkSemaphoreGetWin32HandleInfoKHR.Buffer create(int capacity)
VkSemaphoreGetWin32HandleInfoKHR.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkSemaphoreGetWin32HandleInfoKHR.Buffer create(long address, int capacity)
VkSemaphoreGetWin32HandleInfoKHR.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkSemaphoreGetWin32HandleInfoKHR.Buffer createSafe(long address, int capacity)
public static VkSemaphoreGetWin32HandleInfoKHR mallocStack()
VkSemaphoreGetWin32HandleInfoKHR instance allocated on the thread-local MemoryStack.public static VkSemaphoreGetWin32HandleInfoKHR callocStack()
VkSemaphoreGetWin32HandleInfoKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkSemaphoreGetWin32HandleInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
VkSemaphoreGetWin32HandleInfoKHR instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkSemaphoreGetWin32HandleInfoKHR callocStack(org.lwjgl.system.MemoryStack stack)
VkSemaphoreGetWin32HandleInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkSemaphoreGetWin32HandleInfoKHR.Buffer mallocStack(int capacity)
VkSemaphoreGetWin32HandleInfoKHR.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkSemaphoreGetWin32HandleInfoKHR.Buffer callocStack(int capacity)
VkSemaphoreGetWin32HandleInfoKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkSemaphoreGetWin32HandleInfoKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkSemaphoreGetWin32HandleInfoKHR.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkSemaphoreGetWin32HandleInfoKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkSemaphoreGetWin32HandleInfoKHR.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 long nsemaphore(long struct)
semaphore().public static int nhandleType(long struct)
handleType().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nsemaphore(long struct,
long value)
semaphore.public static void nhandleType(long struct,
int value)
handleType.Copyright LWJGL. All Rights Reserved. License terms.