Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
swapchain_vk.cc
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
6
8
9namespace impeller {
10
11std::shared_ptr<SwapchainVK> SwapchainVK::Create(
12 const std::shared_ptr<Context>& context,
13 vk::UniqueSurfaceKHR surface,
14 const ISize& size,
15 bool enable_msaa) {
16 return std::shared_ptr<KHRSwapchainVK>(
17 new KHRSwapchainVK(context, std::move(surface), size, enable_msaa));
18}
19
20SwapchainVK::SwapchainVK() = default;
21
23
24} // namespace impeller
A swapchain implemented backed by VK_KHR_swapchain and VK_KHR_surface.
static std::shared_ptr< SwapchainVK > Create(const std::shared_ptr< Context > &context, vk::UniqueSurfaceKHR surface, const ISize &size, bool enable_msaa=true)
VkSurfaceKHR surface
Definition main.cc:49