Class VkMemoryGetFdInfoKHR

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class VkMemoryGetFdInfoKHR extends Struct<VkMemoryGetFdInfoKHR> implements NativeResource
Structure describing a POSIX FD memory 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 lseek.

Valid Usage
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

Layout


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