| Flutter Impeller |

device_holder_vk.h
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 #ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_DEVICE_HOLDER_VK_H_
6 #define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_DEVICE_HOLDER_VK_H_
7
8 #include "impeller/renderer/backend/vulkan/vk.h" // IWYU pragma: keep.
9
10 namespace impeller {
11
12 //------------------------------------------------------------------------------
13 /// @brief Holds a strong reference to the underlying logical Vulkan
14 /// device. This comes in handy when the context is being torn down
15 /// and the various components on different threads may need to
16 /// orchestrate safe shutdown.
17 ///
18 class DeviceHolderVK {
19 public:
20 virtual ~DeviceHolderVK() = default;
21
22 virtual const vk::Device& GetDevice() const = 0;
23
24 virtual const vk::PhysicalDevice& GetPhysicalDevice() const = 0;
25 };
26
27 } // namespace impeller
28
29 #endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_DEVICE_HOLDER_VK_H_
impeller::DeviceHolderVK
Holds a strong reference to the underlying logical Vulkan device. This comes in handy when the contex...
Definition: device_holder_vk.h:18
impeller::DeviceHolderVK::GetDevice
virtual const vk::Device & GetDevice() const =0
vk.h
impeller::DeviceHolderVK::~DeviceHolderVK
virtual ~DeviceHolderVK()=default
impeller::DeviceHolderVK::GetPhysicalDevice
virtual const vk::PhysicalDevice & GetPhysicalDevice() const =0
impeller
Definition: aiks_blur_unittests.cc:20