#include <surface_vk.h>
Public Types | |
| using | SwapCallback = std::function< bool(void)> |
Public Member Functions | |
| ~SurfaceVK () override | |
Public Member Functions inherited from impeller::Surface | |
| Surface () | |
| Surface (const RenderTarget &target_desc) | |
| virtual | ~Surface () |
| const ISize & | GetSize () const |
| bool | IsValid () const |
| const RenderTarget & | GetRenderTarget () const |
Static Public Member Functions | |
| static std::unique_ptr< SurfaceVK > | WrapSwapchainImage (const std::shared_ptr< SwapchainTransientsVK > &transients, const std::shared_ptr< TextureSourceVK > &swapchain_image, SwapCallback swap_callback) |
| Wrap the swapchain image in a Surface, which provides the additional configuration required for usage as on onscreen render target by Impeller. More... | |
Definition at line 17 of file surface_vk.h.
| using impeller::SurfaceVK::SwapCallback = std::function<bool(void)> |
Definition at line 19 of file surface_vk.h.
|
overridedefault |
|
static |
Wrap the swapchain image in a Surface, which provides the additional configuration required for usage as on onscreen render target by Impeller.
This creates the associated MSAA and depth+stencil texture.
Definition at line 13 of file surface_vk.cc.
References impeller::ColorAttachment::clear_color, impeller::Color::DarkSlateGray(), impeller::TextureDescriptor::format, impeller::kClear, impeller::kCount1, impeller::RenderTarget::kDefaultStencilAttachmentConfig, impeller::kDevicePrivate, impeller::kMultisampleResolve, impeller::kRenderTarget, impeller::kStore, impeller::kTexture2D, impeller::Attachment::load_action, impeller::Attachment::resolve_texture, impeller::TextureDescriptor::sample_count, impeller::RenderTarget::SetColorAttachment(), impeller::RenderTarget::SetupDepthStencilAttachments(), impeller::TextureDescriptor::size, impeller::TextureDescriptor::storage_mode, impeller::Attachment::store_action, impeller::Attachment::texture, impeller::TextureDescriptor::type, and impeller::TextureDescriptor::usage.
Referenced by impeller::AHBSwapchainImplVK::AcquireNextDrawable(), and impeller::KHRSwapchainImplVK::AcquireNextDrawable().