GraphicsDeviceTestBase.cpp 713 B

12345678910111213141516171819202122232425
  1. #include "pch.h"
  2. #include "GraphicsDevice/IGraphicsDevice.h"
  3. #include "GraphicsDeviceContainer.h"
  4. #include "GraphicsDeviceTestBase.h"
  5. namespace unity
  6. {
  7. namespace webrtc
  8. {
  9. GraphicsDeviceTestBase::GraphicsDeviceTestBase()
  10. {
  11. std::tie(m_unityGfxRenderer, m_textureFormat) = GetParam();
  12. container_ = std::make_unique<GraphicsDeviceContainer>(m_unityGfxRenderer);
  13. device_ = container_->device();
  14. }
  15. GraphicsDeviceTestBase::~GraphicsDeviceTestBase() { }
  16. IGraphicsDevice* GraphicsDeviceTestBase::device() { return device_; }
  17. UnityRenderingExtTextureFormat GraphicsDeviceTestBase::format() { return m_textureFormat; }
  18. } // end namespace webrtc
  19. } // end namespace unity