using System.Runtime.Versioning; namespace Brutal.VulkanApi.Win32 { /// /// VkExportMemoryWin32HandleInfoKHR - Structure specifying additional attributes of Windows handles exported from a memory /// /// /// /// To specify additional attributes of NT handles exported from a memory /// object, add a VkExportMemoryWin32HandleInfoKHR structure to the /// pNext chain of the VkMemoryAllocateInfo structure. /// The VkExportMemoryWin32HandleInfoKHR structure is defined as: /// /// /// // Provided by VK_KHR_external_memory_win32 /// typedef struct VkExportMemoryWin32HandleInfoKHR { /// VkStructureType sType; /// const void* pNext; /// const SECURITY_ATTRIBUTES* pAttributes; /// DWORD dwAccess; /// LPCWSTR name; /// } VkExportMemoryWin32HandleInfoKHR; /// /// [StructLayout(LayoutKind.Explicit, Size = 40)] [SupportedOSPlatform("windows")] public unsafe partial struct VkExportMemoryWin32HandleInfoKHR() { /// /// sType is a VkStructureType value identifying this structure. /// [FieldOffset(0)] internal readonly VkStructureType sType = VkStructureType.ExportMemoryWin32HandleInfoKHR; /// /// Next is `NULL` or a pointer to a structure extending this structure. /// [FieldOffset(8)] public void* Next; /// /// Attributes is a pointer to a Windows SECURITY_ATTRIBUTES structure specifying security attributes of the handle. /// [FieldOffset(16)] public void* Attributes; /// /// DwAccess is a DWORD specifying access rights of the handle. /// [FieldOffset(24)] public int DwAccess; /// /// Name is a null-terminated UTF-16 string to associate with the payload referenced by NT handles exported from the created memory. /// [FieldOffset(32)] public char* Name; } }