#include <swapchain_vk.h>
Definition at line 16 of file swapchain_vk.h.
◆ SwapchainVK() [1/2]
impeller::interop::SwapchainVK::SwapchainVK |
( |
Context & |
context, |
|
|
VkSurfaceKHR |
surface |
|
) |
| |
Definition at line 11 of file swapchain_vk.cc.
12 : context_(
Ref(&context)) {
13 if (!context.IsVulkan()) {
25 auto surface = vk::UniqueSurfaceKHR(
26 vk::SurfaceKHR{c_surface},
36 swapchain_ = std::move(swapchain);
static ContextVK & Cast(Context &base)
vk::Instance GetInstance() const
static std::shared_ptr< SwapchainVK > Create(const std::shared_ptr< Context > &context, vk::UniqueSurfaceKHR surface, const ISize &size, bool enable_msaa=true)
ScopedObject< Object > Ref(Object *object)
static constexpr TSize MakeWH(Type width, Type height)
References impeller::BackendCast< ContextVK, Context >::Cast(), impeller::SwapchainVK::Create(), impeller::interop::Context::GetContext(), impeller::ContextVK::GetInstance(), impeller::interop::Context::IsVulkan(), impeller::TSize< T >::MakeWH(), and VALIDATION_LOG.
◆ ~SwapchainVK()
impeller::interop::SwapchainVK::~SwapchainVK |
( |
| ) |
|
|
default |
◆ SwapchainVK() [2/2]
impeller::interop::SwapchainVK::SwapchainVK |
( |
const SwapchainVK & |
| ) |
|
|
delete |
◆ AcquireNextSurface()
Definition at line 45 of file swapchain_vk.cc.
50 auto impeller_surface = swapchain_->AcquireNextDrawable();
51 if (!impeller_surface) {
56 auto surface = Create<SurfaceVK>(*context_, std::move(impeller_surface));
57 if (!surface || !surface->IsValid()) {
References IsValid(), and VALIDATION_LOG.
◆ IsValid()
bool impeller::interop::SwapchainVK::IsValid |
( |
| ) |
const |
◆ operator=()
The documentation for this class was generated from the following files: