public class VkSemaphoreGetFdInfoKHR
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
The properties of the file descriptor 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 semaphore’s current payload was created.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 a POSIX file descriptor handle.handleType refers to a handle type with copy payload transference semantics, semaphore must have been created with a VkSemaphoreTypeKHR of SEMAPHORE_TYPE_BINARY_KHR.handleType refers to a handle type with copy payload transference semantics, semaphore must have an associated semaphore signal operation that has been submitted for execution and any semaphore signal operations on which it depends (if any) must have also been submitted for execution.sType must be STRUCTURE_TYPE_SEMAPHORE_GET_FD_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 VkSemaphoreGetFdInfoKHR {
VkStructureType sType;
void const * pNext;
VkSemaphore semaphore;
VkExternalSemaphoreHandleTypeFlagBits handleType;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkSemaphoreGetFdInfoKHR.Buffer
An array of
VkSemaphoreGetFdInfoKHR 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 |
|---|
VkSemaphoreGetFdInfoKHR(java.nio.ByteBuffer container)
Creates a
VkSemaphoreGetFdInfoKHR instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkSemaphoreGetFdInfoKHR |
calloc()
Returns a new
VkSemaphoreGetFdInfoKHR instance allocated with memCalloc. |
static VkSemaphoreGetFdInfoKHR.Buffer |
calloc(int capacity)
Returns a new
VkSemaphoreGetFdInfoKHR.Buffer instance allocated with memCalloc. |
static VkSemaphoreGetFdInfoKHR |
callocStack()
Returns a new
VkSemaphoreGetFdInfoKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkSemaphoreGetFdInfoKHR.Buffer |
callocStack(int capacity)
Returns a new
VkSemaphoreGetFdInfoKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkSemaphoreGetFdInfoKHR.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkSemaphoreGetFdInfoKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkSemaphoreGetFdInfoKHR |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkSemaphoreGetFdInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkSemaphoreGetFdInfoKHR |
create()
Returns a new
VkSemaphoreGetFdInfoKHR instance allocated with BufferUtils. |
static VkSemaphoreGetFdInfoKHR.Buffer |
create(int capacity)
Returns a new
VkSemaphoreGetFdInfoKHR.Buffer instance allocated with BufferUtils. |
static VkSemaphoreGetFdInfoKHR |
create(long address)
Returns a new
VkSemaphoreGetFdInfoKHR instance for the specified memory address. |
static VkSemaphoreGetFdInfoKHR.Buffer |
create(long address,
int capacity)
Create a
VkSemaphoreGetFdInfoKHR.Buffer instance at the specified memory. |
static VkSemaphoreGetFdInfoKHR |
createSafe(long address)
|
static VkSemaphoreGetFdInfoKHR.Buffer |
createSafe(long address,
int capacity)
|
int |
handleType()
Returns the value of the
handleType field. |
VkSemaphoreGetFdInfoKHR |
handleType(int value)
Sets the specified value to the
handleType field. |
static VkSemaphoreGetFdInfoKHR |
malloc()
Returns a new
VkSemaphoreGetFdInfoKHR instance allocated with memAlloc. |
static VkSemaphoreGetFdInfoKHR.Buffer |
malloc(int capacity)
Returns a new
VkSemaphoreGetFdInfoKHR.Buffer instance allocated with memAlloc. |
static VkSemaphoreGetFdInfoKHR |
mallocStack()
Returns a new
VkSemaphoreGetFdInfoKHR instance allocated on the thread-local MemoryStack. |
static VkSemaphoreGetFdInfoKHR.Buffer |
mallocStack(int capacity)
Returns a new
VkSemaphoreGetFdInfoKHR.Buffer instance allocated on the thread-local MemoryStack. |
static VkSemaphoreGetFdInfoKHR.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkSemaphoreGetFdInfoKHR.Buffer instance allocated on the specified MemoryStack. |
static VkSemaphoreGetFdInfoKHR |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkSemaphoreGetFdInfoKHR 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. |
VkSemaphoreGetFdInfoKHR |
pNext(long value)
Sets the specified value to the
pNext field. |
long |
semaphore()
Returns the value of the
semaphore field. |
VkSemaphoreGetFdInfoKHR |
semaphore(long value)
Sets the specified value to the
semaphore field. |
VkSemaphoreGetFdInfoKHR |
set(int sType,
long pNext,
long semaphore,
int handleType)
Initializes this struct with the specified values.
|
VkSemaphoreGetFdInfoKHR |
set(VkSemaphoreGetFdInfoKHR src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkSemaphoreGetFdInfoKHR |
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 VkSemaphoreGetFdInfoKHR(java.nio.ByteBuffer container)
VkSemaphoreGetFdInfoKHR 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 VkSemaphoreGetFdInfoKHR sType(int value)
sType field.public VkSemaphoreGetFdInfoKHR pNext(long value)
pNext field.public VkSemaphoreGetFdInfoKHR semaphore(long value)
semaphore field.public VkSemaphoreGetFdInfoKHR handleType(int value)
handleType field.public VkSemaphoreGetFdInfoKHR set(int sType, long pNext, long semaphore, int handleType)
public VkSemaphoreGetFdInfoKHR set(VkSemaphoreGetFdInfoKHR src)
src - the source structpublic static VkSemaphoreGetFdInfoKHR malloc()
VkSemaphoreGetFdInfoKHR instance allocated with memAlloc. The instance must be explicitly freed.public static VkSemaphoreGetFdInfoKHR calloc()
VkSemaphoreGetFdInfoKHR instance allocated with memCalloc. The instance must be explicitly freed.public static VkSemaphoreGetFdInfoKHR create()
VkSemaphoreGetFdInfoKHR instance allocated with BufferUtils.public static VkSemaphoreGetFdInfoKHR create(long address)
VkSemaphoreGetFdInfoKHR instance for the specified memory address.@Nullable public static VkSemaphoreGetFdInfoKHR createSafe(long address)
public static VkSemaphoreGetFdInfoKHR.Buffer malloc(int capacity)
VkSemaphoreGetFdInfoKHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkSemaphoreGetFdInfoKHR.Buffer calloc(int capacity)
VkSemaphoreGetFdInfoKHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkSemaphoreGetFdInfoKHR.Buffer create(int capacity)
VkSemaphoreGetFdInfoKHR.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkSemaphoreGetFdInfoKHR.Buffer create(long address, int capacity)
VkSemaphoreGetFdInfoKHR.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkSemaphoreGetFdInfoKHR.Buffer createSafe(long address, int capacity)
public static VkSemaphoreGetFdInfoKHR mallocStack()
VkSemaphoreGetFdInfoKHR instance allocated on the thread-local MemoryStack.public static VkSemaphoreGetFdInfoKHR callocStack()
VkSemaphoreGetFdInfoKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkSemaphoreGetFdInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
VkSemaphoreGetFdInfoKHR instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkSemaphoreGetFdInfoKHR callocStack(org.lwjgl.system.MemoryStack stack)
VkSemaphoreGetFdInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkSemaphoreGetFdInfoKHR.Buffer mallocStack(int capacity)
VkSemaphoreGetFdInfoKHR.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkSemaphoreGetFdInfoKHR.Buffer callocStack(int capacity)
VkSemaphoreGetFdInfoKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkSemaphoreGetFdInfoKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkSemaphoreGetFdInfoKHR.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkSemaphoreGetFdInfoKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkSemaphoreGetFdInfoKHR.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.