public class VkFenceGetFdInfoKHR
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
The properties of the file descriptor returned depend on the value of handleType. See VkExternalFenceHandleTypeFlagBits for a description of the properties of the defined external fence handle types.
handleType must have been included in VkExportFenceCreateInfo::handleTypes when fence’s current payload was created.handleType refers to a handle type with copy payload transference semantics, fence must be signaled, or have an associated fence signal operation pending execution.fence must not currently have its payload replaced by an imported payload as described below in Importing Fence Payloads unless that imported payload’s handle type was included in VkExternalFenceProperties::exportFromImportedHandleTypes for handleType.handleType must be defined as a POSIX file descriptor handle.sType must be STRUCTURE_TYPE_FENCE_GET_FD_INFO_KHRpNext must be NULLfence must be a valid VkFence handlehandleType must be a valid VkExternalFenceHandleTypeFlagBits valuesType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.fence – the fence from which state will be exported.handleType – the type of handle requested.
struct VkFenceGetFdInfoKHR {
VkStructureType sType;
void const * pNext;
VkFence fence;
VkExternalFenceHandleTypeFlagBits handleType;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkFenceGetFdInfoKHR.Buffer
An array of
VkFenceGetFdInfoKHR structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
FENCE
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 |
|---|
VkFenceGetFdInfoKHR(java.nio.ByteBuffer container)
Creates a
VkFenceGetFdInfoKHR instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkFenceGetFdInfoKHR |
calloc()
Returns a new
VkFenceGetFdInfoKHR instance allocated with memCalloc. |
static VkFenceGetFdInfoKHR.Buffer |
calloc(int capacity)
Returns a new
VkFenceGetFdInfoKHR.Buffer instance allocated with memCalloc. |
static VkFenceGetFdInfoKHR |
callocStack()
Returns a new
VkFenceGetFdInfoKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkFenceGetFdInfoKHR.Buffer |
callocStack(int capacity)
Returns a new
VkFenceGetFdInfoKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkFenceGetFdInfoKHR.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkFenceGetFdInfoKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkFenceGetFdInfoKHR |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkFenceGetFdInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkFenceGetFdInfoKHR |
create()
Returns a new
VkFenceGetFdInfoKHR instance allocated with BufferUtils. |
static VkFenceGetFdInfoKHR.Buffer |
create(int capacity)
Returns a new
VkFenceGetFdInfoKHR.Buffer instance allocated with BufferUtils. |
static VkFenceGetFdInfoKHR |
create(long address)
Returns a new
VkFenceGetFdInfoKHR instance for the specified memory address. |
static VkFenceGetFdInfoKHR.Buffer |
create(long address,
int capacity)
Create a
VkFenceGetFdInfoKHR.Buffer instance at the specified memory. |
static VkFenceGetFdInfoKHR |
createSafe(long address)
|
static VkFenceGetFdInfoKHR.Buffer |
createSafe(long address,
int capacity)
|
long |
fence()
Returns the value of the
fence field. |
VkFenceGetFdInfoKHR |
fence(long value)
Sets the specified value to the
fence field. |
int |
handleType()
Returns the value of the
handleType field. |
VkFenceGetFdInfoKHR |
handleType(int value)
Sets the specified value to the
handleType field. |
static VkFenceGetFdInfoKHR |
malloc()
Returns a new
VkFenceGetFdInfoKHR instance allocated with memAlloc. |
static VkFenceGetFdInfoKHR.Buffer |
malloc(int capacity)
Returns a new
VkFenceGetFdInfoKHR.Buffer instance allocated with memAlloc. |
static VkFenceGetFdInfoKHR |
mallocStack()
Returns a new
VkFenceGetFdInfoKHR instance allocated on the thread-local MemoryStack. |
static VkFenceGetFdInfoKHR.Buffer |
mallocStack(int capacity)
Returns a new
VkFenceGetFdInfoKHR.Buffer instance allocated on the thread-local MemoryStack. |
static VkFenceGetFdInfoKHR.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkFenceGetFdInfoKHR.Buffer instance allocated on the specified MemoryStack. |
static VkFenceGetFdInfoKHR |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkFenceGetFdInfoKHR instance allocated on the specified MemoryStack. |
static long |
nfence(long struct)
Unsafe version of
fence(). |
static void |
nfence(long struct,
long value)
Unsafe version of
fence. |
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. |
VkFenceGetFdInfoKHR |
pNext(long value)
Sets the specified value to the
pNext field. |
VkFenceGetFdInfoKHR |
set(int sType,
long pNext,
long fence,
int handleType)
Initializes this struct with the specified values.
|
VkFenceGetFdInfoKHR |
set(VkFenceGetFdInfoKHR src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkFenceGetFdInfoKHR |
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 HANDLETYPE
public VkFenceGetFdInfoKHR(java.nio.ByteBuffer container)
VkFenceGetFdInfoKHR 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 handleType()
handleType field.public VkFenceGetFdInfoKHR sType(int value)
sType field.public VkFenceGetFdInfoKHR pNext(long value)
pNext field.public VkFenceGetFdInfoKHR fence(long value)
fence field.public VkFenceGetFdInfoKHR handleType(int value)
handleType field.public VkFenceGetFdInfoKHR set(int sType, long pNext, long fence, int handleType)
public VkFenceGetFdInfoKHR set(VkFenceGetFdInfoKHR src)
src - the source structpublic static VkFenceGetFdInfoKHR malloc()
VkFenceGetFdInfoKHR instance allocated with memAlloc. The instance must be explicitly freed.public static VkFenceGetFdInfoKHR calloc()
VkFenceGetFdInfoKHR instance allocated with memCalloc. The instance must be explicitly freed.public static VkFenceGetFdInfoKHR create()
VkFenceGetFdInfoKHR instance allocated with BufferUtils.public static VkFenceGetFdInfoKHR create(long address)
VkFenceGetFdInfoKHR instance for the specified memory address.@Nullable public static VkFenceGetFdInfoKHR createSafe(long address)
public static VkFenceGetFdInfoKHR.Buffer malloc(int capacity)
VkFenceGetFdInfoKHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkFenceGetFdInfoKHR.Buffer calloc(int capacity)
VkFenceGetFdInfoKHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkFenceGetFdInfoKHR.Buffer create(int capacity)
VkFenceGetFdInfoKHR.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkFenceGetFdInfoKHR.Buffer create(long address, int capacity)
VkFenceGetFdInfoKHR.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkFenceGetFdInfoKHR.Buffer createSafe(long address, int capacity)
public static VkFenceGetFdInfoKHR mallocStack()
VkFenceGetFdInfoKHR instance allocated on the thread-local MemoryStack.public static VkFenceGetFdInfoKHR callocStack()
VkFenceGetFdInfoKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkFenceGetFdInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
VkFenceGetFdInfoKHR instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkFenceGetFdInfoKHR callocStack(org.lwjgl.system.MemoryStack stack)
VkFenceGetFdInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkFenceGetFdInfoKHR.Buffer mallocStack(int capacity)
VkFenceGetFdInfoKHR.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkFenceGetFdInfoKHR.Buffer callocStack(int capacity)
VkFenceGetFdInfoKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkFenceGetFdInfoKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkFenceGetFdInfoKHR.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkFenceGetFdInfoKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkFenceGetFdInfoKHR.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 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 nfence(long struct,
long value)
fence.public static void nhandleType(long struct,
int value)
handleType.Copyright LWJGL. All Rights Reserved. License terms.