GraphicsDevice.h 632 B

1234567891011121314151617181920212223242526
  1. #pragma once
  2. #include "IGraphicsDevice.h"
  3. namespace unity
  4. {
  5. namespace webrtc
  6. {
  7. // Singleton
  8. class GraphicsDevice
  9. {
  10. public:
  11. static GraphicsDevice& GetInstance();
  12. IGraphicsDevice* Init(IUnityInterfaces* unityInterface, ProfilerMarkerFactory* profiler);
  13. IGraphicsDevice*
  14. Init(UnityGfxRenderer renderer, void* device, void* unityInterface, ProfilerMarkerFactory* profiler);
  15. private:
  16. GraphicsDevice();
  17. GraphicsDevice(GraphicsDevice const&) = delete;
  18. void operator=(GraphicsDevice const&) = delete;
  19. };
  20. } // end namespace webrtc
  21. } // end namespace unity