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