Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
impeller::SwapchainVK Class Referenceabstract

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>

Inheritance diagram for impeller::SwapchainVK:
impeller::KHRSwapchainVK

Public Member Functions

virtual ~SwapchainVK ()
 
 SwapchainVK (const SwapchainVK &)=delete
 
SwapchainVKoperator= (const SwapchainVK &)=delete
 
virtual bool IsValid () const =0
 
virtual std::unique_ptr< SurfaceAcquireNextDrawable ()=0
 
virtual vk::Format GetSurfaceFormat () const =0
 
virtual void UpdateSurfaceSize (const ISize &size)=0
 Mark the current swapchain configuration as dirty, forcing it to be recreated on the next frame.
 

Static Public Member Functions

static std::shared_ptr< SwapchainVKCreate (const std::shared_ptr< Context > &context, vk::UniqueSurfaceKHR surface, const ISize &size, bool enable_msaa=true)
 

Protected Member Functions

 SwapchainVK ()
 

Detailed Description

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 23 of file swapchain_vk.h.

Constructor & Destructor Documentation

◆ ~SwapchainVK()

impeller::SwapchainVK::~SwapchainVK ( )
virtualdefault

◆ SwapchainVK() [1/2]

impeller::SwapchainVK::SwapchainVK ( const SwapchainVK )
delete

◆ SwapchainVK() [2/2]

impeller::SwapchainVK::SwapchainVK ( )
protecteddefault

Member Function Documentation

◆ AcquireNextDrawable()

virtual std::unique_ptr< Surface > impeller::SwapchainVK::AcquireNextDrawable ( )
pure virtual

Implemented in impeller::KHRSwapchainVK.

◆ Create()

std::shared_ptr< SwapchainVK > impeller::SwapchainVK::Create ( const std::shared_ptr< Context > &  context,
vk::UniqueSurfaceKHR  surface,
const ISize size,
bool  enable_msaa = true 
)
static

Definition at line 11 of file swapchain_vk.cc.

15 {
16 return std::shared_ptr<KHRSwapchainVK>(
17 new KHRSwapchainVK(context, std::move(surface), size, enable_msaa));
18}
VkSurfaceKHR surface
Definition main.cc:49

◆ GetSurfaceFormat()

virtual vk::Format impeller::SwapchainVK::GetSurfaceFormat ( ) const
pure virtual

Implemented in impeller::KHRSwapchainVK.

◆ IsValid()

virtual bool impeller::SwapchainVK::IsValid ( ) const
pure virtual

Implemented in impeller::KHRSwapchainVK.

◆ operator=()

SwapchainVK & impeller::SwapchainVK::operator= ( const SwapchainVK )
delete

◆ UpdateSurfaceSize()

virtual void impeller::SwapchainVK::UpdateSurfaceSize ( const ISize size)
pure virtual

Mark the current swapchain configuration as dirty, forcing it to be recreated on the next frame.

Implemented in impeller::KHRSwapchainVK.


The documentation for this class was generated from the following files: