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 // Device9.h: D3D9 implementation of egl::Device 8 9 #ifndef LIBANGLE_RENDERER_D3D_D3D9_DEVICE9_H_ 10 #define LIBANGLE_RENDERER_D3D_D3D9_DEVICE9_H_ 11 12 #include "libANGLE/Device.h" 13 #include "libANGLE/renderer/DeviceImpl.h" 14 #include "libANGLE/renderer/d3d/d3d9/Renderer9.h" 15 16 namespace rx 17 { 18 class Device9 : public DeviceImpl 19 { 20 public: 21 Device9(IDirect3DDevice9 *device); 22 ~Device9() 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 30 private: 31 IDirect3DDevice9 *mDevice; 32 }; 33 34 } // namespace rx 35 36 #endif // LIBANGLE_RENDERER_D3D_D3D9_DEVICE9_H_ 37