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 25 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 33 of file swapchain_vk.cc.
References impeller::SwapchainImplVK::Create(), IsValid(), and VALIDATION_LOG.
|
static |
Definition at line 13 of file swapchain_vk.cc.
References impeller::SwapchainImplVK::Create(), and VALIDATION_LOG.
Referenced by impeller::SurfaceContextVK::SetWindowSurface().
| vk::Format impeller::SwapchainVK::GetSurfaceFormat | ( | ) | const |
Definition at line 72 of file swapchain_vk.cc.
References IsValid().
| bool impeller::SwapchainVK::IsValid | ( | ) | const |
Definition at line 29 of file swapchain_vk.cc.
Referenced by AcquireNextDrawable(), and GetSurfaceFormat().