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.
    Description

    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.

    Note

    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)
    • sType must be STRUCTURE_TYPE_MEMORY_GET_FD_INFO_KHR
    • pNext must be NULL
    • memory must be a valid VkDeviceMemory handle
    • handleType must be a valid VkExternalMemoryHandleTypeFlagBits value
    See Also

    GetMemoryFdKHR

    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.

    Layout

    
     struct VkMemoryGetFdInfoKHR {
         VkStructureType sType;
         void const * pNext;
         VkDeviceMemory memory;
         VkExternalMemoryHandleTypeFlagBits handleType;
     }