Flutter Impeller
device_holder.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_H_
6 #define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_DEVICE_HOLDER_H_
7 
8 #include "impeller/renderer/backend/vulkan/vk.h" // IWYU pragma: keep.
9 
10 namespace impeller {
11 
12 class DeviceHolder {
13  public:
14  virtual ~DeviceHolder() = default;
15  virtual const vk::Device& GetDevice() const = 0;
16  virtual const vk::PhysicalDevice& GetPhysicalDevice() const = 0;
17 };
18 
19 } // namespace impeller
20 
21 #endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_DEVICE_HOLDER_H_
impeller::DeviceHolder
Definition: device_holder.h:12
vk.h
impeller::DeviceHolder::GetDevice
virtual const vk::Device & GetDevice() const =0
impeller::DeviceHolder::~DeviceHolder
virtual ~DeviceHolder()=default
impeller
Definition: aiks_context.cc:10
impeller::DeviceHolder::GetPhysicalDevice
virtual const vk::PhysicalDevice & GetPhysicalDevice() const =0