public class VkImportFenceFdInfoKHR
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
The handle types supported by handleType are:
VkImportFenceFdInfoKHR| Handle Type | Transference | Permanence Supported |
|---|---|---|
EXTERNAL_FENCE_HANDLE_TYPE_OPAQUE_FD_BIT | Reference | Temporary,Permanent |
EXTERNAL_FENCE_HANDLE_TYPE_SYNC_FD_BIT | Copy | Temporary |
handleType must be a value included in the Handle Types Supported by VkImportFenceFdInfoKHR table.fd must obey any requirements listed for handleType in external fence handle types compatibility.If handleType is EXTERNAL_FENCE_HANDLE_TYPE_SYNC_FD_BIT, the special value -1 for fd is treated like a valid sync file descriptor referring to an object that has already signaled. The import operation will succeed and the VkFence will have a temporarily imported payload as if a valid file descriptor had been provided.
This special behavior for importing an invalid sync file descriptor allows easier interoperability with other system APIs which use the convention that an invalid sync file descriptor represents work that has already completed and does not need to be waited for. It is consistent with the option for implementations to return a -1 file descriptor when exporting a EXTERNAL_FENCE_HANDLE_TYPE_SYNC_FD_BIT from a VkFence which is signaled.
sType must be STRUCTURE_TYPE_IMPORT_FENCE_FD_INFO_KHRpNext must be NULLfence must be a valid VkFence handleflags must be a valid combination of VkFenceImportFlagBits valueshandleType must be a valid VkExternalFenceHandleTypeFlagBits valuefence must be externally synchronizedsType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.fence – the fence into which the payload will be imported.flags – a bitmask of VkFenceImportFlagBits specifying additional parameters for the fence payload import operation.handleType – specifies the type of fd.fd – the external handle to import.
struct VkImportFenceFdInfoKHR {
VkStructureType sType;
void const * pNext;
VkFence fence;
VkFenceImportFlags flags;
VkExternalFenceHandleTypeFlagBits handleType;
int fd;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkImportFenceFdInfoKHR.Buffer
An array of
VkImportFenceFdInfoKHR structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
FD
The struct member offsets.
|
static int |
FENCE
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 |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkImportFenceFdInfoKHR(java.nio.ByteBuffer container)
Creates a
VkImportFenceFdInfoKHR instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkImportFenceFdInfoKHR |
calloc()
Returns a new
VkImportFenceFdInfoKHR instance allocated with memCalloc. |
static VkImportFenceFdInfoKHR.Buffer |
calloc(int capacity)
Returns a new
VkImportFenceFdInfoKHR.Buffer instance allocated with memCalloc. |
static VkImportFenceFdInfoKHR |
callocStack()
Returns a new
VkImportFenceFdInfoKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkImportFenceFdInfoKHR.Buffer |
callocStack(int capacity)
Returns a new
VkImportFenceFdInfoKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkImportFenceFdInfoKHR.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkImportFenceFdInfoKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkImportFenceFdInfoKHR |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkImportFenceFdInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkImportFenceFdInfoKHR |
create()
Returns a new
VkImportFenceFdInfoKHR instance allocated with BufferUtils. |
static VkImportFenceFdInfoKHR.Buffer |
create(int capacity)
Returns a new
VkImportFenceFdInfoKHR.Buffer instance allocated with BufferUtils. |
static VkImportFenceFdInfoKHR |
create(long address)
Returns a new
VkImportFenceFdInfoKHR instance for the specified memory address. |
static VkImportFenceFdInfoKHR.Buffer |
create(long address,
int capacity)
Create a
VkImportFenceFdInfoKHR.Buffer instance at the specified memory. |
static VkImportFenceFdInfoKHR |
createSafe(long address)
|
static VkImportFenceFdInfoKHR.Buffer |
createSafe(long address,
int capacity)
|
int |
fd()
Returns the value of the
fd field. |
VkImportFenceFdInfoKHR |
fd(int value)
Sets the specified value to the
fd field. |
long |
fence()
Returns the value of the
fence field. |
VkImportFenceFdInfoKHR |
fence(long value)
Sets the specified value to the
fence field. |
int |
flags()
Returns the value of the
flags field. |
VkImportFenceFdInfoKHR |
flags(int value)
Sets the specified value to the
flags field. |
int |
handleType()
Returns the value of the
handleType field. |
VkImportFenceFdInfoKHR |
handleType(int value)
Sets the specified value to the
handleType field. |
static VkImportFenceFdInfoKHR |
malloc()
Returns a new
VkImportFenceFdInfoKHR instance allocated with memAlloc. |
static VkImportFenceFdInfoKHR.Buffer |
malloc(int capacity)
Returns a new
VkImportFenceFdInfoKHR.Buffer instance allocated with memAlloc. |
static VkImportFenceFdInfoKHR |
mallocStack()
Returns a new
VkImportFenceFdInfoKHR instance allocated on the thread-local MemoryStack. |
static VkImportFenceFdInfoKHR.Buffer |
mallocStack(int capacity)
Returns a new
VkImportFenceFdInfoKHR.Buffer instance allocated on the thread-local MemoryStack. |
static VkImportFenceFdInfoKHR.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkImportFenceFdInfoKHR.Buffer instance allocated on the specified MemoryStack. |
static VkImportFenceFdInfoKHR |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkImportFenceFdInfoKHR 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 long |
nfence(long struct)
Unsafe version of
fence(). |
static void |
nfence(long struct,
long value)
Unsafe version of
fence. |
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 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. |
VkImportFenceFdInfoKHR |
pNext(long value)
Sets the specified value to the
pNext field. |
VkImportFenceFdInfoKHR |
set(int sType,
long pNext,
long fence,
int flags,
int handleType,
int fd)
Initializes this struct with the specified values.
|
VkImportFenceFdInfoKHR |
set(VkImportFenceFdInfoKHR src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkImportFenceFdInfoKHR |
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 FENCE
public static final int FLAGS
public static final int HANDLETYPE
public static final int FD
public VkImportFenceFdInfoKHR(java.nio.ByteBuffer container)
VkImportFenceFdInfoKHR 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 fence()
fence field.public int flags()
flags field.public int handleType()
handleType field.public int fd()
fd field.public VkImportFenceFdInfoKHR sType(int value)
sType field.public VkImportFenceFdInfoKHR pNext(long value)
pNext field.public VkImportFenceFdInfoKHR fence(long value)
fence field.public VkImportFenceFdInfoKHR flags(int value)
flags field.public VkImportFenceFdInfoKHR handleType(int value)
handleType field.public VkImportFenceFdInfoKHR fd(int value)
fd field.public VkImportFenceFdInfoKHR set(int sType, long pNext, long fence, int flags, int handleType, int fd)
public VkImportFenceFdInfoKHR set(VkImportFenceFdInfoKHR src)
src - the source structpublic static VkImportFenceFdInfoKHR malloc()
VkImportFenceFdInfoKHR instance allocated with memAlloc. The instance must be explicitly freed.public static VkImportFenceFdInfoKHR calloc()
VkImportFenceFdInfoKHR instance allocated with memCalloc. The instance must be explicitly freed.public static VkImportFenceFdInfoKHR create()
VkImportFenceFdInfoKHR instance allocated with BufferUtils.public static VkImportFenceFdInfoKHR create(long address)
VkImportFenceFdInfoKHR instance for the specified memory address.@Nullable public static VkImportFenceFdInfoKHR createSafe(long address)
public static VkImportFenceFdInfoKHR.Buffer malloc(int capacity)
VkImportFenceFdInfoKHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkImportFenceFdInfoKHR.Buffer calloc(int capacity)
VkImportFenceFdInfoKHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkImportFenceFdInfoKHR.Buffer create(int capacity)
VkImportFenceFdInfoKHR.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkImportFenceFdInfoKHR.Buffer create(long address, int capacity)
VkImportFenceFdInfoKHR.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkImportFenceFdInfoKHR.Buffer createSafe(long address, int capacity)
public static VkImportFenceFdInfoKHR mallocStack()
VkImportFenceFdInfoKHR instance allocated on the thread-local MemoryStack.public static VkImportFenceFdInfoKHR callocStack()
VkImportFenceFdInfoKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkImportFenceFdInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
VkImportFenceFdInfoKHR instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkImportFenceFdInfoKHR callocStack(org.lwjgl.system.MemoryStack stack)
VkImportFenceFdInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkImportFenceFdInfoKHR.Buffer mallocStack(int capacity)
VkImportFenceFdInfoKHR.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkImportFenceFdInfoKHR.Buffer callocStack(int capacity)
VkImportFenceFdInfoKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkImportFenceFdInfoKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkImportFenceFdInfoKHR.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkImportFenceFdInfoKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkImportFenceFdInfoKHR.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 nfence(long struct)
fence().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 nfence(long struct,
long value)
fence.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.