using System.Runtime.Versioning; namespace Brutal.VulkanApi.Win32 { /// /// VkExportMemoryWin32HandleInfoNV - Specify security attributes and access rights for Win32 memory handles /// /// /// /// When VkExportMemoryAllocateInfoNV::handleTypes includes /// VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_BIT_NV, add a /// VkExportMemoryWin32HandleInfoNV structure to the pNext chain of /// the VkExportMemoryAllocateInfoNV structure to specify security /// attributes and access rights for the memory object's external handle. /// /// /// The VkExportMemoryWin32HandleInfoNV structure is defined as: /// /// /// // Provided by VK_NV_external_memory_win32 /// typedef struct VkExportMemoryWin32HandleInfoNV { /// VkStructureType sType; /// const void* pNext; /// const SECURITY_ATTRIBUTES* pAttributes; /// DWORD dwAccess; /// } VkExportMemoryWin32HandleInfoNV; /// /// [StructLayout(LayoutKind.Explicit, Size = 32)] [SupportedOSPlatform("windows")] public unsafe partial struct VkExportMemoryWin32HandleInfoNV() { /// /// sType is a VkStructureType value identifying this structure. /// [FieldOffset(0)] internal readonly VkStructureType sType = VkStructureType.ExportMemoryWin32HandleInfoNV; /// /// 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; } }