using System.Runtime.Versioning; namespace Brutal.VulkanApi.Win32 { /// /// VkImportSemaphoreWin32HandleInfoKHR - Structure specifying Windows handle to import to a semaphore /// /// /// /// The VkImportSemaphoreWin32HandleInfoKHR structure is defined as: /// /// /// // Provided by VK_KHR_external_semaphore_win32 /// typedef struct VkImportSemaphoreWin32HandleInfoKHR { /// VkStructureType sType; /// const void* pNext; /// VkSemaphore semaphore; /// VkSemaphoreImportFlags flags; /// VkExternalSemaphoreHandleTypeFlagBits handleType; /// HANDLE handle; /// LPCWSTR name; /// } VkImportSemaphoreWin32HandleInfoKHR; /// /// [StructLayout(LayoutKind.Explicit, Size = 48)] [SupportedOSPlatform("windows")] public unsafe partial struct VkImportSemaphoreWin32HandleInfoKHR() { /// /// sType is a VkStructureType value identifying this structure. /// [FieldOffset(0)] internal readonly VkStructureType sType = VkStructureType.ImportSemaphoreWin32HandleInfoKHR; /// /// Next is `NULL` or a pointer to a structure extending this structure. /// [FieldOffset(8)] public void* Next; /// /// Semaphore is the semaphore into which the payload will be imported. /// [FieldOffset(16)] public VkSemaphore Semaphore; /// /// Flags is a bitmask of VkSemaphoreImportFlags specifying additional parameters for the semaphore payload import operation. /// [FieldOffset(24)] public VkSemaphoreImportFlags Flags; /// /// HandleType is a VkExternalSemaphoreHandleTypeFlags value specifying the type of handle. /// [FieldOffset(28)] public VkExternalSemaphoreHandleTypeFlags HandleType; /// /// Handle is `NULL` or the external handle to import. /// [FieldOffset(32)] public nint Handle; /// /// Name is `NULL` or a null-terminated UTF-16 string naming the underlying synchronization primitive to import. /// [FieldOffset(40)] public char* Name; } }