namespace Brutal.VulkanApi { /// /// VkPresentInfoKHR - Structure describing parameters of a queue presentation /// /// /// /// The VkPresentInfoKHR structure is defined as: /// /// /// // Provided by VK_KHR_swapchain /// typedef struct VkPresentInfoKHR { /// VkStructureType sType; /// const void* pNext; /// uint32_t waitSemaphoreCount; /// const VkSemaphore* pWaitSemaphores; /// uint32_t swapchainCount; /// const VkSwapchainKHR* pSwapchains; /// const uint32_t* pImageIndices; /// VkResult* pResults; /// } VkPresentInfoKHR; /// /// [StructLayout(LayoutKind.Explicit, Size = 64)] public unsafe partial struct VkPresentInfoKHR() { /// /// sType is a VkStructureType value identifying this structure. /// [FieldOffset(0)] internal readonly VkStructureType sType = VkStructureType.PresentInfoKHR; /// /// Next is `NULL` or a pointer to a structure extending this structure. /// [FieldOffset(8)] public void* Next; /// /// WaitSemaphoreCount is the number of semaphores to wait for before issuing the present request. The number may: be zero. /// [FieldOffset(16)] public int WaitSemaphoreCount; /// /// WaitSemaphores is `NULL` or a pointer to an array of VkSemaphore objects with waitSemaphoreCount entries, and specifies the semaphores to wait for before issuing the present request. /// [FieldOffset(24)] public VkSemaphore* WaitSemaphores; /// /// SwapchainCount is the number of swapchains being presented to by this command. /// [FieldOffset(32)] public int SwapchainCount; /// /// Swapchains is a pointer to an array of VkSwapchainKHR objects with swapchainCount entries. /// [FieldOffset(40)] public VkSwapchainKHR* Swapchains; /// /// ImageIndices is a pointer to an array of indices into the array of each swapchain's presentable images, with swapchainCount entries. Each entry in this array identifies the image to present on the corresponding entry in the pSwapchains array. /// [FieldOffset(48)] public int* ImageIndices; /// /// Results is a pointer to an array of VkResult typed elements with swapchainCount entries. Applications that do not need per-swapchain results can use `NULL` for pResults. If non-`NULL`, each entry in pResults will be set to the VkResult for presenting the swapchain corresponding to the same index in pSwapchains. /// [FieldOffset(56)] public VkResult* Results; } }