Class VkMemoryGetFdInfoKHR

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer

    public class VkMemoryGetFdInfoKHR
    extends Struct
    implements NativeResource
    Structure describing a POSIX FD semaphore export operation.

    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)].

    Valid Usage
    • handleType must have been included in VkExportMemoryAllocateInfo::handleTypes when memory was created.
    • handleType must be defined as a POSIX file descriptor handle.
    Valid Usage (Implicit)
    • pNext must be NULL
    • memory must be a valid VkDeviceMemory handle
    • handleType must be a valid VkExternalMemoryHandleTypeFlagBits value
    See Also


    Member documentation

    • sType – the type of this structure.
    • pNextNULL 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;