using System.Runtime.Versioning; namespace Brutal.VulkanApi.Win32 { /// /// VkExportSemaphoreWin32HandleInfoKHR - Structure specifying additional attributes of Windows handles exported from a semaphore /// /// /// /// To specify additional attributes of NT handles exported from a semaphore, /// add a VkExportSemaphoreWin32HandleInfoKHR structure to the pNext /// chain of the VkSemaphoreCreateInfo structure. /// The VkExportSemaphoreWin32HandleInfoKHR structure is defined as: /// /// /// // Provided by VK_KHR_external_semaphore_win32 /// typedef struct VkExportSemaphoreWin32HandleInfoKHR { /// VkStructureType sType; /// const void* pNext; /// const SECURITY_ATTRIBUTES* pAttributes; /// DWORD dwAccess; /// LPCWSTR name; /// } VkExportSemaphoreWin32HandleInfoKHR; /// /// [StructLayout(LayoutKind.Explicit, Size = 40)] [SupportedOSPlatform("windows")] public unsafe partial struct VkExportSemaphoreWin32HandleInfoKHR() { /// /// sType is a VkStructureType value identifying this structure. /// [FieldOffset(0)] internal readonly VkStructureType sType = VkStructureType.ExportSemaphoreWin32HandleInfoKHR; /// /// 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 underlying synchronization primitive referenced by NT handles exported from the created semaphore. /// [FieldOffset(32)] public char* Name; } }