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 <khr_swapchain_vk.h>
Public Member Functions | |
~KHRSwapchainVK () | |
bool | IsValid () const |
std::unique_ptr< Surface > | AcquireNextDrawable () |
vk::Format | GetSurfaceFormat () const |
void | UpdateSurfaceSize (const ISize &size) |
Mark the current swapchain configuration as dirty, forcing it to be recreated on the next frame. More... | |
Static Public Member Functions | |
static std::shared_ptr< KHRSwapchainVK > | Create (const std::shared_ptr< Context > &context, vk::UniqueSurfaceKHR surface, const ISize &size, bool enable_msaa=true) |
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 khr_swapchain_vk.h.
|
default |
std::unique_ptr< Surface > impeller::KHRSwapchainVK::AcquireNextDrawable | ( | ) |
We managed to recreate the swapchain in the new configuration. Try again.
Definition at line 45 of file khr_swapchain_vk.cc.
References impeller::KHRSwapchainImplVK::Create(), IsValid(), and VALIDATION_LOG.
|
static |
Definition at line 13 of file khr_swapchain_vk.cc.
References impeller::KHRSwapchainImplVK::Create(), and VALIDATION_LOG.
Referenced by impeller::SurfaceContextVK::SetWindowSurface().
vk::Format impeller::KHRSwapchainVK::GetSurfaceFormat | ( | ) | const |
Definition at line 85 of file khr_swapchain_vk.cc.
References IsValid().
bool impeller::KHRSwapchainVK::IsValid | ( | ) | const |
Definition at line 35 of file khr_swapchain_vk.cc.
Referenced by AcquireNextDrawable(), and GetSurfaceFormat().
void impeller::KHRSwapchainVK::UpdateSurfaceSize | ( | const ISize & | size | ) |
Mark the current swapchain configuration as dirty, forcing it to be recreated on the next frame.
Definition at line 39 of file khr_swapchain_vk.cc.