• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //
2 // Copyright 2024 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 
7 // Device11.h: D3D11 implementation of egl::Device
8 
9 #ifndef LIBANGLE_RENDERER_D3D_D3D11_DEVICE11_H_
10 #define LIBANGLE_RENDERER_D3D_D3D11_DEVICE11_H_
11 
12 #include "libANGLE/Device.h"
13 #include "libANGLE/renderer/DeviceImpl.h"
14 #include "libANGLE/renderer/d3d/d3d11/Renderer11.h"
15 
16 namespace rx
17 {
18 class Device11 : public DeviceImpl
19 {
20   public:
21     Device11(void *nativeDevice);
22     ~Device11() override;
23 
24     egl::Error initialize() override;
25     egl::Error getAttribute(const egl::Display *display,
26                             EGLint attribute,
27                             void **outValue) override;
28     void generateExtensions(egl::DeviceExtensions *outExtensions) const override;
29 
getDevice()30     ID3D11Device* getDevice() const { return mDevice; }
31 
32   private:
33     ID3D11Device *mDevice = nullptr;
34 };
35 
36 }  // namespace rx
37 
38 #endif  // LIBANGLE_RENDERER_D3D_D3D11_DEVICE11_H_
39