Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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
10namespace 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///
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_
Holds a strong reference to the underlying logical Vulkan device. This comes in handy when the contex...
virtual ~DeviceHolderVK()=default
virtual const vk::Device & GetDevice() const =0
virtual const vk::PhysicalDevice & GetPhysicalDevice() const =0