public class VkMemoryGetFdInfoKHR
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
The properties of the file descriptor exported depend on the value of handleType. See VkExternalMemoryHandleTypeFlagBits for a description of the properties of the defined external memory handle types.
The size of the exported file may be larger than the size requested by VkMemoryAllocateInfo::allocationSize. If handleType is EXTERNAL_MEMORY_HANDLE_TYPE_DMA_BUF_BIT_EXT, then the application can query the file's actual size with link:man:lseek(2)[lseek(2)].
handleType must have been included in VkExportMemoryAllocateInfo::handleTypes when memory was created.handleType must be defined as a POSIX file descriptor handle.sType must be STRUCTURE_TYPE_MEMORY_GET_FD_INFO_KHRpNext must be NULLmemory must be a valid VkDeviceMemory handlehandleType must be a valid VkExternalMemoryHandleTypeFlagBits valuesType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.memory – the memory object from which the handle will be exported.handleType – the type of handle requested.
struct VkMemoryGetFdInfoKHR {
VkStructureType sType;
void const * pNext;
VkDeviceMemory memory;
VkExternalMemoryHandleTypeFlagBits handleType;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkMemoryGetFdInfoKHR.Buffer
An array of
VkMemoryGetFdInfoKHR structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
HANDLETYPE
The struct member offsets.
|
static int |
MEMORY
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 |
|---|
VkMemoryGetFdInfoKHR(java.nio.ByteBuffer container)
Creates a
VkMemoryGetFdInfoKHR instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkMemoryGetFdInfoKHR |
calloc()
Returns a new
VkMemoryGetFdInfoKHR instance allocated with memCalloc. |
static VkMemoryGetFdInfoKHR.Buffer |
calloc(int capacity)
Returns a new
VkMemoryGetFdInfoKHR.Buffer instance allocated with memCalloc. |
static VkMemoryGetFdInfoKHR |
callocStack()
Returns a new
VkMemoryGetFdInfoKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkMemoryGetFdInfoKHR.Buffer |
callocStack(int capacity)
Returns a new
VkMemoryGetFdInfoKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkMemoryGetFdInfoKHR.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkMemoryGetFdInfoKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkMemoryGetFdInfoKHR |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkMemoryGetFdInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkMemoryGetFdInfoKHR |
create()
Returns a new
VkMemoryGetFdInfoKHR instance allocated with BufferUtils. |
static VkMemoryGetFdInfoKHR.Buffer |
create(int capacity)
Returns a new
VkMemoryGetFdInfoKHR.Buffer instance allocated with BufferUtils. |
static VkMemoryGetFdInfoKHR |
create(long address)
Returns a new
VkMemoryGetFdInfoKHR instance for the specified memory address. |
static VkMemoryGetFdInfoKHR.Buffer |
create(long address,
int capacity)
Create a
VkMemoryGetFdInfoKHR.Buffer instance at the specified memory. |
static VkMemoryGetFdInfoKHR |
createSafe(long address)
|
static VkMemoryGetFdInfoKHR.Buffer |
createSafe(long address,
int capacity)
|
int |
handleType()
Returns the value of the
handleType field. |
VkMemoryGetFdInfoKHR |
handleType(int value)
Sets the specified value to the
handleType field. |
static VkMemoryGetFdInfoKHR |
malloc()
Returns a new
VkMemoryGetFdInfoKHR instance allocated with memAlloc. |
static VkMemoryGetFdInfoKHR.Buffer |
malloc(int capacity)
Returns a new
VkMemoryGetFdInfoKHR.Buffer instance allocated with memAlloc. |
static VkMemoryGetFdInfoKHR |
mallocStack()
Returns a new
VkMemoryGetFdInfoKHR instance allocated on the thread-local MemoryStack. |
static VkMemoryGetFdInfoKHR.Buffer |
mallocStack(int capacity)
Returns a new
VkMemoryGetFdInfoKHR.Buffer instance allocated on the thread-local MemoryStack. |
static VkMemoryGetFdInfoKHR.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkMemoryGetFdInfoKHR.Buffer instance allocated on the specified MemoryStack. |
static VkMemoryGetFdInfoKHR |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkMemoryGetFdInfoKHR instance allocated on the specified MemoryStack. |
long |
memory()
Returns the value of the
memory field. |
VkMemoryGetFdInfoKHR |
memory(long value)
Sets the specified value to the
memory field. |
static int |
nhandleType(long struct)
Unsafe version of
handleType(). |
static void |
nhandleType(long struct,
int value)
Unsafe version of
handleType. |
static long |
nmemory(long struct)
Unsafe version of
memory(). |
static void |
nmemory(long struct,
long value)
Unsafe version of
memory. |
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. |
VkMemoryGetFdInfoKHR |
pNext(long value)
Sets the specified value to the
pNext field. |
VkMemoryGetFdInfoKHR |
set(int sType,
long pNext,
long memory,
int handleType)
Initializes this struct with the specified values.
|
VkMemoryGetFdInfoKHR |
set(VkMemoryGetFdInfoKHR src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkMemoryGetFdInfoKHR |
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 MEMORY
public static final int HANDLETYPE
public VkMemoryGetFdInfoKHR(java.nio.ByteBuffer container)
VkMemoryGetFdInfoKHR 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 memory()
memory field.public int handleType()
handleType field.public VkMemoryGetFdInfoKHR sType(int value)
sType field.public VkMemoryGetFdInfoKHR pNext(long value)
pNext field.public VkMemoryGetFdInfoKHR memory(long value)
memory field.public VkMemoryGetFdInfoKHR handleType(int value)
handleType field.public VkMemoryGetFdInfoKHR set(int sType, long pNext, long memory, int handleType)
public VkMemoryGetFdInfoKHR set(VkMemoryGetFdInfoKHR src)
src - the source structpublic static VkMemoryGetFdInfoKHR malloc()
VkMemoryGetFdInfoKHR instance allocated with memAlloc. The instance must be explicitly freed.public static VkMemoryGetFdInfoKHR calloc()
VkMemoryGetFdInfoKHR instance allocated with memCalloc. The instance must be explicitly freed.public static VkMemoryGetFdInfoKHR create()
VkMemoryGetFdInfoKHR instance allocated with BufferUtils.public static VkMemoryGetFdInfoKHR create(long address)
VkMemoryGetFdInfoKHR instance for the specified memory address.@Nullable public static VkMemoryGetFdInfoKHR createSafe(long address)
public static VkMemoryGetFdInfoKHR.Buffer malloc(int capacity)
VkMemoryGetFdInfoKHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkMemoryGetFdInfoKHR.Buffer calloc(int capacity)
VkMemoryGetFdInfoKHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkMemoryGetFdInfoKHR.Buffer create(int capacity)
VkMemoryGetFdInfoKHR.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkMemoryGetFdInfoKHR.Buffer create(long address, int capacity)
VkMemoryGetFdInfoKHR.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkMemoryGetFdInfoKHR.Buffer createSafe(long address, int capacity)
public static VkMemoryGetFdInfoKHR mallocStack()
VkMemoryGetFdInfoKHR instance allocated on the thread-local MemoryStack.public static VkMemoryGetFdInfoKHR callocStack()
VkMemoryGetFdInfoKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkMemoryGetFdInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
VkMemoryGetFdInfoKHR instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkMemoryGetFdInfoKHR callocStack(org.lwjgl.system.MemoryStack stack)
VkMemoryGetFdInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkMemoryGetFdInfoKHR.Buffer mallocStack(int capacity)
VkMemoryGetFdInfoKHR.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkMemoryGetFdInfoKHR.Buffer callocStack(int capacity)
VkMemoryGetFdInfoKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkMemoryGetFdInfoKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkMemoryGetFdInfoKHR.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkMemoryGetFdInfoKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkMemoryGetFdInfoKHR.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 nmemory(long struct)
memory().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 nmemory(long struct,
long value)
memory.public static void nhandleType(long struct,
int value)
handleType.Copyright LWJGL. All Rights Reserved. License terms.