namespace Brutal.VulkanApi { /// /// VkImportMemoryFdInfoKHR - Import memory created on the same physical device from a file descriptor /// /// /// /// To import memory from a POSIX file descriptor handle, add a /// VkImportMemoryFdInfoKHR structure to the pNext chain of the /// VkMemoryAllocateInfo structure. /// The VkImportMemoryFdInfoKHR structure is defined as: /// /// /// // Provided by VK_KHR_external_memory_fd /// typedef struct VkImportMemoryFdInfoKHR { /// VkStructureType sType; /// const void* pNext; /// VkExternalMemoryHandleTypeFlagBits handleType; /// int fd; /// } VkImportMemoryFdInfoKHR; /// /// [StructLayout(LayoutKind.Explicit, Size = 24)] public unsafe partial struct VkImportMemoryFdInfoKHR() { /// /// sType is a VkStructureType value identifying this structure. /// [FieldOffset(0)] internal readonly VkStructureType sType = VkStructureType.ImportMemoryFdInfoKHR; /// /// Next is `NULL` or a pointer to a structure extending this structure. /// [FieldOffset(8)] public void* Next; /// /// HandleType is a VkExternalMemoryHandleTypeFlags value specifying the handle type of fd. /// [FieldOffset(16)] public VkExternalMemoryHandleTypeFlags HandleType; /// /// Fd is the external handle to import. /// [FieldOffset(20)] public int Fd; } }