xref: /aosp_15_r20/external/angle/src/libANGLE/renderer/vulkan/linux/DeviceVkLinux.h (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1 //
2 // Copyright 2016 The ANGLE Project Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5 //
6 // DeviceVkLinux.h:
7 //    Defines the class interface for DeviceVkLinux, implementing DeviceImpl.
8 //
9 
10 #ifndef LIBANGLE_RENDERER_VULKAN_DEVICEVKLINUX_H_
11 #define LIBANGLE_RENDERER_VULKAN_DEVICEVKLINUX_H_
12 
13 #include "libANGLE/renderer/vulkan/DeviceVk.h"
14 
15 namespace rx
16 {
17 
18 class DisplayVk;
19 
20 class DeviceVkLinux : public DeviceVk
21 {
22   public:
23     DeviceVkLinux(DisplayVk *display);
24 
25     egl::Error initialize() override;
26     void generateExtensions(egl::DeviceExtensions *outExtensions) const override;
27     const std::string getDeviceString(EGLint name) override;
28 
29   private:
30     DisplayVk *mDisplay;
31     std::string mDrmDevice;
32     std::string mDrmRenderNode;
33 };
34 
35 }  // namespace rx
36 
37 #endif  // LIBANGLE_RENDERER_VULKAN_DEVICEVKLINUX_H_
38