namespace Brutal.VulkanApi { /// /// VkSwapchainKHR - Opaque handle to a swapchain object /// /// /// /// A swapchain object (a.k.a. /// swapchain) provides the ability to present rendering results to a surface. /// Swapchain objects are represented by VkSwapchainKHR handles: /// /// /// // Provided by VK_KHR_swapchain /// VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkSwapchainKHR) /// /// public readonly unsafe struct VkSwapchainKHR : IVulkanHandle { /// public VkObjectType VkObjectType => VkObjectType.SwapchainKHR; /// public nint VkHandle { get; } /// Construct from an existing pointer public VkSwapchainKHR(nint handle) { VkHandle = handle; } /// public bool IsNull() { return VkHandle == 0; } public static VkSwapchainKHR NullHandle = new(); } }