A swapchain that adapts to the underlying surface going out of date. If the caller cannot acquire the next drawable, it is due to an unrecoverable error and the swapchain must be recreated with a new surface. More...
#include <swapchain_vk.h>
Public Member Functions | |
| ~SwapchainVK () | |
| bool | IsValid () const |
| std::unique_ptr< Surface > | AcquireNextDrawable () |
| vk::Format | GetSurfaceFormat () const |
Static Public Member Functions | |
| static std::shared_ptr< SwapchainVK > | Create (const std::shared_ptr< Context > &context, vk::UniqueSurfaceKHR surface) |
A swapchain that adapts to the underlying surface going out of date. If the caller cannot acquire the next drawable, it is due to an unrecoverable error and the swapchain must be recreated with a new surface.
Definition at line 24 of file swapchain_vk.h.
|
default |
| std::unique_ptr< Surface > impeller::SwapchainVK::AcquireNextDrawable | ( | ) |
We managed to recreate the swapchain in the new configuration. Try again.
Definition at line 31 of file swapchain_vk.cc.
References impeller::SwapchainImplVK::Create(), IsValid(), and VALIDATION_LOG.
|
static |
Definition at line 12 of file swapchain_vk.cc.
References impeller::SwapchainImplVK::Create().
Referenced by impeller::SurfaceContextVK::SetWindowSurface().
| vk::Format impeller::SwapchainVK::GetSurfaceFormat | ( | ) | const |
Definition at line 70 of file swapchain_vk.cc.
References IsValid().
| bool impeller::SwapchainVK::IsValid | ( | ) | const |
Definition at line 27 of file swapchain_vk.cc.
Referenced by AcquireNextDrawable(), and GetSurfaceFormat().