public class VkImportSemaphoreWin32HandleInfoKHR
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
The handle types supported by handleType are:
VkImportSemaphoreWin32HandleInfoKHR| Handle Type | Transference | Permanence Supported |
|---|---|---|
EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32_BIT | Reference | Temporary,Permanent |
EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32_KMT_BIT | Reference | Temporary,Permanent |
EXTERNAL_SEMAPHORE_HANDLE_TYPE_D3D12_FENCE_BIT | Reference | Temporary,Permanent |
handleType must be a value included in the Handle Types Supported by VkImportSemaphoreWin32HandleInfoKHR table.handleType is not EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32_BIT or EXTERNAL_SEMAPHORE_HANDLE_TYPE_D3D12_FENCE_BIT, name must be NULL.handleType is not 0 and handle is NULL, name must name a valid synchronization primitive of the type specified by handleType.handleType is not 0 and name is NULL, handle must be a valid handle of the type specified by handleType.handle is not NULL, name must be NULL.handle is not NULL, it must obey any requirements listed for handleType in external semaphore handle types compatibility.name is not NULL, it must obey any requirements listed for handleType in external semaphore handle types compatibility.handleType is EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32_BIT or EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32_KMT_BIT, the VkSemaphoreCreateInfo::flags field must match that of the semaphore from which handle or name was exported.handleType is EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32_BIT or EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32_KMT_BIT, the VkSemaphoreTypeCreateInfoKHR::semaphoreType field must match that of the semaphore from which handle or name was exported.flags contains SEMAPHORE_IMPORT_TEMPORARY_BIT, the VkSemaphoreTypeCreateInfoKHR::semaphoreType field of the semaphore from which handle or name was exported must not be SEMAPHORE_TYPE_TIMELINE_KHR.sType must be STRUCTURE_TYPE_IMPORT_SEMAPHORE_WIN32_HANDLE_INFO_KHRpNext must be NULLsemaphore must be a valid VkSemaphore handleflags must be a valid combination of VkSemaphoreImportFlagBits valueshandleType is not 0, handleType must be a valid VkExternalSemaphoreHandleTypeFlagBits valuesemaphore must be externally synchronizedsType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.semaphore – the semaphore into which the payload will be imported.flags – a bitmask of VkSemaphoreImportFlagBits specifying additional parameters for the semaphore payload import operation.handleType – specifies the type of handle.handle – the external handle to import, or NULL.name – a null-terminated UTF-16 string naming the underlying synchronization primitive to import, or NULL.
struct VkImportSemaphoreWin32HandleInfoKHR {
VkStructureType sType;
void const * pNext;
VkSemaphore semaphore;
VkSemaphoreImportFlags flags;
VkExternalSemaphoreHandleTypeFlagBits handleType;
HANDLE handle;
LPCWSTR name;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkImportSemaphoreWin32HandleInfoKHR.Buffer
An array of
VkImportSemaphoreWin32HandleInfoKHR structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
FLAGS
The struct member offsets.
|
static int |
HANDLE
The struct member offsets.
|
static int |
HANDLETYPE
The struct member offsets.
|
static int |
NAME
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 |
|---|
VkImportSemaphoreWin32HandleInfoKHR(java.nio.ByteBuffer container)
Creates a
VkImportSemaphoreWin32HandleInfoKHR instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkImportSemaphoreWin32HandleInfoKHR |
calloc()
Returns a new
VkImportSemaphoreWin32HandleInfoKHR instance allocated with memCalloc. |
static VkImportSemaphoreWin32HandleInfoKHR.Buffer |
calloc(int capacity)
Returns a new
VkImportSemaphoreWin32HandleInfoKHR.Buffer instance allocated with memCalloc. |
static VkImportSemaphoreWin32HandleInfoKHR |
callocStack()
Returns a new
VkImportSemaphoreWin32HandleInfoKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkImportSemaphoreWin32HandleInfoKHR.Buffer |
callocStack(int capacity)
Returns a new
VkImportSemaphoreWin32HandleInfoKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkImportSemaphoreWin32HandleInfoKHR.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkImportSemaphoreWin32HandleInfoKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkImportSemaphoreWin32HandleInfoKHR |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkImportSemaphoreWin32HandleInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkImportSemaphoreWin32HandleInfoKHR |
create()
Returns a new
VkImportSemaphoreWin32HandleInfoKHR instance allocated with BufferUtils. |
static VkImportSemaphoreWin32HandleInfoKHR.Buffer |
create(int capacity)
Returns a new
VkImportSemaphoreWin32HandleInfoKHR.Buffer instance allocated with BufferUtils. |
static VkImportSemaphoreWin32HandleInfoKHR |
create(long address)
Returns a new
VkImportSemaphoreWin32HandleInfoKHR instance for the specified memory address. |
static VkImportSemaphoreWin32HandleInfoKHR.Buffer |
create(long address,
int capacity)
Create a
VkImportSemaphoreWin32HandleInfoKHR.Buffer instance at the specified memory. |
static VkImportSemaphoreWin32HandleInfoKHR |
createSafe(long address)
|
static VkImportSemaphoreWin32HandleInfoKHR.Buffer |
createSafe(long address,
int capacity)
|
int |
flags()
Returns the value of the
flags field. |
VkImportSemaphoreWin32HandleInfoKHR |
flags(int value)
Sets the specified value to the
flags field. |
long |
handle()
Returns the value of the
handle field. |
VkImportSemaphoreWin32HandleInfoKHR |
handle(long value)
Sets the specified value to the
handle field. |
int |
handleType()
Returns the value of the
handleType field. |
VkImportSemaphoreWin32HandleInfoKHR |
handleType(int value)
Sets the specified value to the
handleType field. |
static VkImportSemaphoreWin32HandleInfoKHR |
malloc()
Returns a new
VkImportSemaphoreWin32HandleInfoKHR instance allocated with memAlloc. |
static VkImportSemaphoreWin32HandleInfoKHR.Buffer |
malloc(int capacity)
Returns a new
VkImportSemaphoreWin32HandleInfoKHR.Buffer instance allocated with memAlloc. |
static VkImportSemaphoreWin32HandleInfoKHR |
mallocStack()
Returns a new
VkImportSemaphoreWin32HandleInfoKHR instance allocated on the thread-local MemoryStack. |
static VkImportSemaphoreWin32HandleInfoKHR.Buffer |
mallocStack(int capacity)
Returns a new
VkImportSemaphoreWin32HandleInfoKHR.Buffer instance allocated on the thread-local MemoryStack. |
static VkImportSemaphoreWin32HandleInfoKHR.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkImportSemaphoreWin32HandleInfoKHR.Buffer instance allocated on the specified MemoryStack. |
static VkImportSemaphoreWin32HandleInfoKHR |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkImportSemaphoreWin32HandleInfoKHR instance allocated on the specified MemoryStack. |
java.nio.ByteBuffer |
name()
Returns a
ByteBuffer view of the null-terminated string pointed to by the name field. |
VkImportSemaphoreWin32HandleInfoKHR |
name(java.nio.ByteBuffer value)
Sets the address of the specified encoded string to the
name field. |
java.lang.String |
nameString()
Decodes the null-terminated string pointed to by the
name field. |
static int |
nflags(long struct)
Unsafe version of
flags(). |
static void |
nflags(long struct,
int value)
Unsafe version of
flags. |
static long |
nhandle(long struct)
Unsafe version of
handle(). |
static void |
nhandle(long struct,
long value)
Unsafe version of
handle. |
static int |
nhandleType(long struct)
Unsafe version of
handleType(). |
static void |
nhandleType(long struct,
int value)
Unsafe version of
handleType. |
static java.nio.ByteBuffer |
nname(long struct)
Unsafe version of
name(). |
static void |
nname(long struct,
java.nio.ByteBuffer value)
Unsafe version of
name. |
static java.lang.String |
nnameString(long struct)
Unsafe version of
nameString(). |
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. |
VkImportSemaphoreWin32HandleInfoKHR |
pNext(long value)
Sets the specified value to the
pNext field. |
long |
semaphore()
Returns the value of the
semaphore field. |
VkImportSemaphoreWin32HandleInfoKHR |
semaphore(long value)
Sets the specified value to the
semaphore field. |
VkImportSemaphoreWin32HandleInfoKHR |
set(int sType,
long pNext,
long semaphore,
int flags,
int handleType,
long handle,
java.nio.ByteBuffer name)
Initializes this struct with the specified values.
|
VkImportSemaphoreWin32HandleInfoKHR |
set(VkImportSemaphoreWin32HandleInfoKHR src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkImportSemaphoreWin32HandleInfoKHR |
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 SEMAPHORE
public static final int FLAGS
public static final int HANDLETYPE
public static final int HANDLE
public static final int NAME
public VkImportSemaphoreWin32HandleInfoKHR(java.nio.ByteBuffer container)
VkImportSemaphoreWin32HandleInfoKHR 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 flags()
flags field.public int handleType()
handleType field.public long handle()
handle field.public java.nio.ByteBuffer name()
ByteBuffer view of the null-terminated string pointed to by the name field.public java.lang.String nameString()
name field.public VkImportSemaphoreWin32HandleInfoKHR sType(int value)
sType field.public VkImportSemaphoreWin32HandleInfoKHR pNext(long value)
pNext field.public VkImportSemaphoreWin32HandleInfoKHR semaphore(long value)
semaphore field.public VkImportSemaphoreWin32HandleInfoKHR flags(int value)
flags field.public VkImportSemaphoreWin32HandleInfoKHR handleType(int value)
handleType field.public VkImportSemaphoreWin32HandleInfoKHR handle(long value)
handle field.public VkImportSemaphoreWin32HandleInfoKHR name(java.nio.ByteBuffer value)
name field.public VkImportSemaphoreWin32HandleInfoKHR set(int sType, long pNext, long semaphore, int flags, int handleType, long handle, java.nio.ByteBuffer name)
public VkImportSemaphoreWin32HandleInfoKHR set(VkImportSemaphoreWin32HandleInfoKHR src)
src - the source structpublic static VkImportSemaphoreWin32HandleInfoKHR malloc()
VkImportSemaphoreWin32HandleInfoKHR instance allocated with memAlloc. The instance must be explicitly freed.public static VkImportSemaphoreWin32HandleInfoKHR calloc()
VkImportSemaphoreWin32HandleInfoKHR instance allocated with memCalloc. The instance must be explicitly freed.public static VkImportSemaphoreWin32HandleInfoKHR create()
VkImportSemaphoreWin32HandleInfoKHR instance allocated with BufferUtils.public static VkImportSemaphoreWin32HandleInfoKHR create(long address)
VkImportSemaphoreWin32HandleInfoKHR instance for the specified memory address.@Nullable public static VkImportSemaphoreWin32HandleInfoKHR createSafe(long address)
public static VkImportSemaphoreWin32HandleInfoKHR.Buffer malloc(int capacity)
VkImportSemaphoreWin32HandleInfoKHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkImportSemaphoreWin32HandleInfoKHR.Buffer calloc(int capacity)
VkImportSemaphoreWin32HandleInfoKHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkImportSemaphoreWin32HandleInfoKHR.Buffer create(int capacity)
VkImportSemaphoreWin32HandleInfoKHR.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkImportSemaphoreWin32HandleInfoKHR.Buffer create(long address, int capacity)
VkImportSemaphoreWin32HandleInfoKHR.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkImportSemaphoreWin32HandleInfoKHR.Buffer createSafe(long address, int capacity)
public static VkImportSemaphoreWin32HandleInfoKHR mallocStack()
VkImportSemaphoreWin32HandleInfoKHR instance allocated on the thread-local MemoryStack.public static VkImportSemaphoreWin32HandleInfoKHR callocStack()
VkImportSemaphoreWin32HandleInfoKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkImportSemaphoreWin32HandleInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
VkImportSemaphoreWin32HandleInfoKHR instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkImportSemaphoreWin32HandleInfoKHR callocStack(org.lwjgl.system.MemoryStack stack)
VkImportSemaphoreWin32HandleInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkImportSemaphoreWin32HandleInfoKHR.Buffer mallocStack(int capacity)
VkImportSemaphoreWin32HandleInfoKHR.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkImportSemaphoreWin32HandleInfoKHR.Buffer callocStack(int capacity)
VkImportSemaphoreWin32HandleInfoKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkImportSemaphoreWin32HandleInfoKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkImportSemaphoreWin32HandleInfoKHR.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkImportSemaphoreWin32HandleInfoKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkImportSemaphoreWin32HandleInfoKHR.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 nflags(long struct)
flags().public static int nhandleType(long struct)
handleType().public static long nhandle(long struct)
handle().public static java.nio.ByteBuffer nname(long struct)
name().public static java.lang.String nnameString(long struct)
nameString().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 nflags(long struct,
int value)
flags.public static void nhandleType(long struct,
int value)
handleType.public static void nhandle(long struct,
long value)
handle.public static void nname(long struct,
java.nio.ByteBuffer value)
name.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.