Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
impeller
renderer
backend
vulkan
swapchain
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
5
#include "
impeller/renderer/backend/vulkan/swapchain/swapchain_vk.h
"
6
7
#include "
impeller/renderer/backend/vulkan/swapchain/khr/khr_swapchain_vk.h
"
8
9
namespace
impeller
{
10
11
std::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
20
SwapchainVK::SwapchainVK
() =
default
;
21
22
SwapchainVK::~SwapchainVK
() =
default
;
23
24
}
// namespace impeller
impeller::KHRSwapchainVK
A swapchain implemented backed by VK_KHR_swapchain and VK_KHR_surface.
Definition
khr_swapchain_vk.h:24
impeller::SwapchainVK::~SwapchainVK
virtual ~SwapchainVK()
impeller::SwapchainVK::SwapchainVK
SwapchainVK()
impeller::SwapchainVK::Create
static std::shared_ptr< SwapchainVK > Create(const std::shared_ptr< Context > &context, vk::UniqueSurfaceKHR surface, const ISize &size, bool enable_msaa=true)
Definition
swapchain_vk.cc:11
surface
VkSurfaceKHR surface
Definition
main.cc:49
khr_swapchain_vk.h
impeller
Definition
texture.h:18
impeller::TSize< int64_t >
swapchain_vk.h
Generated on Fri Apr 26 2024 06:14:13 for Flutter Engine by
1.9.8