public class VkPhysicalDeviceExternalFenceInfo
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
Handles of type EXTERNAL_FENCE_HANDLE_TYPE_SYNC_FD_BIT generated by the implementation may represent either Linux Sync Files or Android Fences at the implementation's discretion. Applications should only use operations defined for both types of file descriptors, unless they know via means external to Vulkan the type of the file descriptor, or are prepared to deal with the system-defined operation failures resulting from using the wrong type.
sType must be STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_FENCE_INFOpNext must be NULLhandleType must be a valid VkExternalFenceHandleTypeFlagBits valueGetPhysicalDeviceExternalFenceProperties, GetPhysicalDeviceExternalFencePropertiesKHR
sType – the type of this structurepNext – NULL or a pointer to an extension-specific structure.handleType – a VkExternalFenceHandleTypeFlagBits value indicating an external fence handle type for which capabilities will be returned.
struct VkPhysicalDeviceExternalFenceInfo {
VkStructureType sType;
void const * pNext;
VkExternalFenceHandleTypeFlagBits handleType;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkPhysicalDeviceExternalFenceInfo.Buffer
An array of
VkPhysicalDeviceExternalFenceInfo 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 |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkPhysicalDeviceExternalFenceInfo(java.nio.ByteBuffer container)
Creates a
VkPhysicalDeviceExternalFenceInfo instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkPhysicalDeviceExternalFenceInfo |
calloc()
Returns a new
VkPhysicalDeviceExternalFenceInfo instance allocated with memCalloc. |
static VkPhysicalDeviceExternalFenceInfo.Buffer |
calloc(int capacity)
Returns a new
VkPhysicalDeviceExternalFenceInfo.Buffer instance allocated with memCalloc. |
static VkPhysicalDeviceExternalFenceInfo |
callocStack()
Returns a new
VkPhysicalDeviceExternalFenceInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceExternalFenceInfo.Buffer |
callocStack(int capacity)
Returns a new
VkPhysicalDeviceExternalFenceInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceExternalFenceInfo.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceExternalFenceInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceExternalFenceInfo |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceExternalFenceInfo instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceExternalFenceInfo |
create()
Returns a new
VkPhysicalDeviceExternalFenceInfo instance allocated with BufferUtils. |
static VkPhysicalDeviceExternalFenceInfo.Buffer |
create(int capacity)
Returns a new
VkPhysicalDeviceExternalFenceInfo.Buffer instance allocated with BufferUtils. |
static VkPhysicalDeviceExternalFenceInfo |
create(long address)
Returns a new
VkPhysicalDeviceExternalFenceInfo instance for the specified memory address. |
static VkPhysicalDeviceExternalFenceInfo.Buffer |
create(long address,
int capacity)
Create a
VkPhysicalDeviceExternalFenceInfo.Buffer instance at the specified memory. |
static VkPhysicalDeviceExternalFenceInfo |
createSafe(long address)
|
static VkPhysicalDeviceExternalFenceInfo.Buffer |
createSafe(long address,
int capacity)
|
int |
handleType()
Returns the value of the
handleType field. |
VkPhysicalDeviceExternalFenceInfo |
handleType(int value)
Sets the specified value to the
handleType field. |
static VkPhysicalDeviceExternalFenceInfo |
malloc()
Returns a new
VkPhysicalDeviceExternalFenceInfo instance allocated with memAlloc. |
static VkPhysicalDeviceExternalFenceInfo.Buffer |
malloc(int capacity)
Returns a new
VkPhysicalDeviceExternalFenceInfo.Buffer instance allocated with memAlloc. |
static VkPhysicalDeviceExternalFenceInfo |
mallocStack()
Returns a new
VkPhysicalDeviceExternalFenceInfo instance allocated on the thread-local MemoryStack. |
static VkPhysicalDeviceExternalFenceInfo.Buffer |
mallocStack(int capacity)
Returns a new
VkPhysicalDeviceExternalFenceInfo.Buffer instance allocated on the thread-local MemoryStack. |
static VkPhysicalDeviceExternalFenceInfo.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceExternalFenceInfo.Buffer instance allocated on the specified MemoryStack. |
static VkPhysicalDeviceExternalFenceInfo |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceExternalFenceInfo 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 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. |
VkPhysicalDeviceExternalFenceInfo |
pNext(long value)
Sets the specified value to the
pNext field. |
VkPhysicalDeviceExternalFenceInfo |
set(int sType,
long pNext,
int handleType)
Initializes this struct with the specified values.
|
VkPhysicalDeviceExternalFenceInfo |
set(VkPhysicalDeviceExternalFenceInfo src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkPhysicalDeviceExternalFenceInfo |
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 HANDLETYPE
public VkPhysicalDeviceExternalFenceInfo(java.nio.ByteBuffer container)
VkPhysicalDeviceExternalFenceInfo 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 int handleType()
handleType field.public VkPhysicalDeviceExternalFenceInfo sType(int value)
sType field.public VkPhysicalDeviceExternalFenceInfo pNext(long value)
pNext field.public VkPhysicalDeviceExternalFenceInfo handleType(int value)
handleType field.public VkPhysicalDeviceExternalFenceInfo set(int sType, long pNext, int handleType)
public VkPhysicalDeviceExternalFenceInfo set(VkPhysicalDeviceExternalFenceInfo src)
src - the source structpublic static VkPhysicalDeviceExternalFenceInfo malloc()
VkPhysicalDeviceExternalFenceInfo instance allocated with memAlloc. The instance must be explicitly freed.public static VkPhysicalDeviceExternalFenceInfo calloc()
VkPhysicalDeviceExternalFenceInfo instance allocated with memCalloc. The instance must be explicitly freed.public static VkPhysicalDeviceExternalFenceInfo create()
VkPhysicalDeviceExternalFenceInfo instance allocated with BufferUtils.public static VkPhysicalDeviceExternalFenceInfo create(long address)
VkPhysicalDeviceExternalFenceInfo instance for the specified memory address.@Nullable public static VkPhysicalDeviceExternalFenceInfo createSafe(long address)
public static VkPhysicalDeviceExternalFenceInfo.Buffer malloc(int capacity)
VkPhysicalDeviceExternalFenceInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPhysicalDeviceExternalFenceInfo.Buffer calloc(int capacity)
VkPhysicalDeviceExternalFenceInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPhysicalDeviceExternalFenceInfo.Buffer create(int capacity)
VkPhysicalDeviceExternalFenceInfo.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkPhysicalDeviceExternalFenceInfo.Buffer create(long address, int capacity)
VkPhysicalDeviceExternalFenceInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkPhysicalDeviceExternalFenceInfo.Buffer createSafe(long address, int capacity)
public static VkPhysicalDeviceExternalFenceInfo mallocStack()
VkPhysicalDeviceExternalFenceInfo instance allocated on the thread-local MemoryStack.public static VkPhysicalDeviceExternalFenceInfo callocStack()
VkPhysicalDeviceExternalFenceInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkPhysicalDeviceExternalFenceInfo mallocStack(org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceExternalFenceInfo instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkPhysicalDeviceExternalFenceInfo callocStack(org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceExternalFenceInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkPhysicalDeviceExternalFenceInfo.Buffer mallocStack(int capacity)
VkPhysicalDeviceExternalFenceInfo.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkPhysicalDeviceExternalFenceInfo.Buffer callocStack(int capacity)
VkPhysicalDeviceExternalFenceInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkPhysicalDeviceExternalFenceInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceExternalFenceInfo.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkPhysicalDeviceExternalFenceInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceExternalFenceInfo.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 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 nhandleType(long struct,
int value)
handleType.Copyright LWJGL. All Rights Reserved. License terms.