Class VkImportMemoryFdInfoKHR

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class VkImportMemoryFdInfoKHR extends Struct<VkImportMemoryFdInfoKHR> implements NativeResource
Import memory created on the same physical device from a file descriptor.
Description

Importing memory from a file descriptor transfers ownership of the file descriptor from the application to the Vulkan implementation. The application must not perform any operations on the file descriptor after a successful import. The imported memory object holds a reference to its payload.

Applications can import the same payload into multiple instances of Vulkan, into the same instance from which it was exported, and multiple times into a given Vulkan instance. In all cases, each import operation must create a distinct VkDeviceMemory object.

Valid Usage
Valid Usage (Implicit)

Layout


 struct VkImportMemoryFdInfoKHR {
     VkStructureType sType();
     void const * pNext();
     VkExternalMemoryHandleTypeFlagBits handleType();
     int fd();
 }