12345678910111213141516171819202122232425 |
- #include "pch.h"
- #include "GraphicsDevice/IGraphicsDevice.h"
- #include "GraphicsDeviceContainer.h"
- #include "GraphicsDeviceTestBase.h"
- namespace unity
- {
- namespace webrtc
- {
- GraphicsDeviceTestBase::GraphicsDeviceTestBase()
- {
- std::tie(m_unityGfxRenderer, m_textureFormat) = GetParam();
- container_ = std::make_unique<GraphicsDeviceContainer>(m_unityGfxRenderer);
- device_ = container_->device();
- }
- GraphicsDeviceTestBase::~GraphicsDeviceTestBase() { }
- IGraphicsDevice* GraphicsDeviceTestBase::device() { return device_; }
- UnityRenderingExtTextureFormat GraphicsDeviceTestBase::format() { return m_textureFormat; }
- } // end namespace webrtc
- } // end namespace unity
|