public class VkImportSemaphoreFdInfoKHR
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
The handle types supported by handleType are:
VkImportSemaphoreFdInfoKHR| Handle Type | Transference | Permanence Supported |
|---|---|---|
EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_FD_BIT | Reference | Temporary,Permanent |
EXTERNAL_SEMAPHORE_HANDLE_TYPE_SYNC_FD_BIT | Copy | Temporary |
handleType must be a value included in the Handle Types Supported by VkImportSemaphoreFdInfoKHR table.fd must obey any requirements listed for handleType in external semaphore handle types compatibility.handleType is EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_FD_BIT, the VkSemaphoreCreateInfo::flags field must match that of the semaphore from which fd was exported.handleType is EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_FD_BIT, the VkSemaphoreTypeCreateInfoKHR::semaphoreType field must match that of the semaphore from which fd was exported.flags contains SEMAPHORE_IMPORT_TEMPORARY_BIT, the VkSemaphoreTypeCreateInfoKHR::semaphoreType field of the semaphore from which fd was exported must not be SEMAPHORE_TYPE_TIMELINE_KHR.sType must be STRUCTURE_TYPE_IMPORT_SEMAPHORE_FD_INFO_KHRpNext must be NULLsemaphore must be a valid VkSemaphore handleflags must be a valid combination of VkSemaphoreImportFlagBits valueshandleType 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 fd.fd – the external handle to import.
struct VkImportSemaphoreFdInfoKHR {
VkStructureType sType;
void const * pNext;
VkSemaphore semaphore;
VkSemaphoreImportFlags flags;
VkExternalSemaphoreHandleTypeFlagBits handleType;
int fd;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkImportSemaphoreFdInfoKHR.Buffer
An array of
VkImportSemaphoreFdInfoKHR structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
FD
The struct member offsets.
|
static int |
FLAGS
The struct member offsets.
|
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 |
|---|
VkImportSemaphoreFdInfoKHR(java.nio.ByteBuffer container)
Creates a
VkImportSemaphoreFdInfoKHR instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkImportSemaphoreFdInfoKHR |
calloc()
Returns a new
VkImportSemaphoreFdInfoKHR instance allocated with memCalloc. |
static VkImportSemaphoreFdInfoKHR.Buffer |
calloc(int capacity)
Returns a new
VkImportSemaphoreFdInfoKHR.Buffer instance allocated with memCalloc. |
static VkImportSemaphoreFdInfoKHR |
callocStack()
Returns a new
VkImportSemaphoreFdInfoKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkImportSemaphoreFdInfoKHR.Buffer |
callocStack(int capacity)
Returns a new
VkImportSemaphoreFdInfoKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkImportSemaphoreFdInfoKHR.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkImportSemaphoreFdInfoKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkImportSemaphoreFdInfoKHR |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkImportSemaphoreFdInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkImportSemaphoreFdInfoKHR |
create()
Returns a new
VkImportSemaphoreFdInfoKHR instance allocated with BufferUtils. |
static VkImportSemaphoreFdInfoKHR.Buffer |
create(int capacity)
Returns a new
VkImportSemaphoreFdInfoKHR.Buffer instance allocated with BufferUtils. |
static VkImportSemaphoreFdInfoKHR |
create(long address)
Returns a new
VkImportSemaphoreFdInfoKHR instance for the specified memory address. |
static VkImportSemaphoreFdInfoKHR.Buffer |
create(long address,
int capacity)
Create a
VkImportSemaphoreFdInfoKHR.Buffer instance at the specified memory. |
static VkImportSemaphoreFdInfoKHR |
createSafe(long address)
|
static VkImportSemaphoreFdInfoKHR.Buffer |
createSafe(long address,
int capacity)
|
int |
fd()
Returns the value of the
fd field. |
VkImportSemaphoreFdInfoKHR |
fd(int value)
Sets the specified value to the
fd field. |
int |
flags()
Returns the value of the
flags field. |
VkImportSemaphoreFdInfoKHR |
flags(int value)
Sets the specified value to the
flags field. |
int |
handleType()
Returns the value of the
handleType field. |
VkImportSemaphoreFdInfoKHR |
handleType(int value)
Sets the specified value to the
handleType field. |
static VkImportSemaphoreFdInfoKHR |
malloc()
Returns a new
VkImportSemaphoreFdInfoKHR instance allocated with memAlloc. |
static VkImportSemaphoreFdInfoKHR.Buffer |
malloc(int capacity)
Returns a new
VkImportSemaphoreFdInfoKHR.Buffer instance allocated with memAlloc. |
static VkImportSemaphoreFdInfoKHR |
mallocStack()
Returns a new
VkImportSemaphoreFdInfoKHR instance allocated on the thread-local MemoryStack. |
static VkImportSemaphoreFdInfoKHR.Buffer |
mallocStack(int capacity)
Returns a new
VkImportSemaphoreFdInfoKHR.Buffer instance allocated on the thread-local MemoryStack. |
static VkImportSemaphoreFdInfoKHR.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkImportSemaphoreFdInfoKHR.Buffer instance allocated on the specified MemoryStack. |
static VkImportSemaphoreFdInfoKHR |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkImportSemaphoreFdInfoKHR instance allocated on the specified MemoryStack. |
static int |
nfd(long struct)
Unsafe version of
fd(). |
static void |
nfd(long struct,
int value)
Unsafe version of
fd. |
static int |
nflags(long struct)
Unsafe version of
flags(). |
static void |
nflags(long struct,
int value)
Unsafe version of
flags. |
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. |
VkImportSemaphoreFdInfoKHR |
pNext(long value)
Sets the specified value to the
pNext field. |
long |
semaphore()
Returns the value of the
semaphore field. |
VkImportSemaphoreFdInfoKHR |
semaphore(long value)
Sets the specified value to the
semaphore field. |
VkImportSemaphoreFdInfoKHR |
set(int sType,
long pNext,
long semaphore,
int flags,
int handleType,
int fd)
Initializes this struct with the specified values.
|
VkImportSemaphoreFdInfoKHR |
set(VkImportSemaphoreFdInfoKHR src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkImportSemaphoreFdInfoKHR |
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 FLAGS
public static final int HANDLETYPE
public static final int FD
public VkImportSemaphoreFdInfoKHR(java.nio.ByteBuffer container)
VkImportSemaphoreFdInfoKHR 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 int fd()
fd field.public VkImportSemaphoreFdInfoKHR sType(int value)
sType field.public VkImportSemaphoreFdInfoKHR pNext(long value)
pNext field.public VkImportSemaphoreFdInfoKHR semaphore(long value)
semaphore field.public VkImportSemaphoreFdInfoKHR flags(int value)
flags field.public VkImportSemaphoreFdInfoKHR handleType(int value)
handleType field.public VkImportSemaphoreFdInfoKHR fd(int value)
fd field.public VkImportSemaphoreFdInfoKHR set(int sType, long pNext, long semaphore, int flags, int handleType, int fd)
public VkImportSemaphoreFdInfoKHR set(VkImportSemaphoreFdInfoKHR src)
src - the source structpublic static VkImportSemaphoreFdInfoKHR malloc()
VkImportSemaphoreFdInfoKHR instance allocated with memAlloc. The instance must be explicitly freed.public static VkImportSemaphoreFdInfoKHR calloc()
VkImportSemaphoreFdInfoKHR instance allocated with memCalloc. The instance must be explicitly freed.public static VkImportSemaphoreFdInfoKHR create()
VkImportSemaphoreFdInfoKHR instance allocated with BufferUtils.public static VkImportSemaphoreFdInfoKHR create(long address)
VkImportSemaphoreFdInfoKHR instance for the specified memory address.@Nullable public static VkImportSemaphoreFdInfoKHR createSafe(long address)
public static VkImportSemaphoreFdInfoKHR.Buffer malloc(int capacity)
VkImportSemaphoreFdInfoKHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkImportSemaphoreFdInfoKHR.Buffer calloc(int capacity)
VkImportSemaphoreFdInfoKHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkImportSemaphoreFdInfoKHR.Buffer create(int capacity)
VkImportSemaphoreFdInfoKHR.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkImportSemaphoreFdInfoKHR.Buffer create(long address, int capacity)
VkImportSemaphoreFdInfoKHR.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkImportSemaphoreFdInfoKHR.Buffer createSafe(long address, int capacity)
public static VkImportSemaphoreFdInfoKHR mallocStack()
VkImportSemaphoreFdInfoKHR instance allocated on the thread-local MemoryStack.public static VkImportSemaphoreFdInfoKHR callocStack()
VkImportSemaphoreFdInfoKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkImportSemaphoreFdInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
VkImportSemaphoreFdInfoKHR instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkImportSemaphoreFdInfoKHR callocStack(org.lwjgl.system.MemoryStack stack)
VkImportSemaphoreFdInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkImportSemaphoreFdInfoKHR.Buffer mallocStack(int capacity)
VkImportSemaphoreFdInfoKHR.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkImportSemaphoreFdInfoKHR.Buffer callocStack(int capacity)
VkImportSemaphoreFdInfoKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkImportSemaphoreFdInfoKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkImportSemaphoreFdInfoKHR.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkImportSemaphoreFdInfoKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkImportSemaphoreFdInfoKHR.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 int nfd(long struct)
fd().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 nfd(long struct,
int value)
fd.Copyright LWJGL. All Rights Reserved. License terms.