using System.Runtime.Versioning; namespace Brutal.VulkanApi.Win32 { /// /// VkImportMemoryWin32HandleInfoNV - Import Win32 memory created on the same physical device /// /// /// /// To import memory created on the same physical device but outside of the /// current Vulkan instance, add a VkImportMemoryWin32HandleInfoNV /// structure to the pNext chain of the VkMemoryAllocateInfo /// structure, specifying a handle to and the type of the memory. /// /// /// The VkImportMemoryWin32HandleInfoNV structure is defined as: /// /// /// // Provided by VK_NV_external_memory_win32 /// typedef struct VkImportMemoryWin32HandleInfoNV { /// VkStructureType sType; /// const void* pNext; /// VkExternalMemoryHandleTypeFlagsNV handleType; /// HANDLE handle; /// } VkImportMemoryWin32HandleInfoNV; /// /// [StructLayout(LayoutKind.Explicit, Size = 32)] [SupportedOSPlatform("windows")] public unsafe partial struct VkImportMemoryWin32HandleInfoNV() { /// /// sType is a VkStructureType value identifying this structure. /// [FieldOffset(0)] internal readonly VkStructureType sType = VkStructureType.ImportMemoryWin32HandleInfoNV; /// /// Next is `NULL` or a pointer to a structure extending this structure. /// [FieldOffset(8)] public void* Next; /// /// HandleType is `0` or a VkExternalMemoryHandleTypeFlagsNV value specifying the type of memory handle in handle. /// [FieldOffset(16)] public VkExternalMemoryHandleTypeFlagsNV HandleType; /// /// Handle is a Windows HANDLE referring to the memory. /// [FieldOffset(24)] public nint Handle; } }