gpu.cpp 705 B

12345678910111213141516171819202122232425
  1. // Copyright 2018 yuzu Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #include "video_core/engines/fermi_2d.h"
  5. #include "video_core/engines/maxwell_3d.h"
  6. #include "video_core/engines/maxwell_compute.h"
  7. #include "video_core/gpu.h"
  8. namespace Tegra {
  9. GPU::GPU() {
  10. memory_manager = std::make_unique<MemoryManager>();
  11. maxwell_3d = std::make_unique<Engines::Maxwell3D>(*memory_manager);
  12. fermi_2d = std::make_unique<Engines::Fermi2D>();
  13. maxwell_compute = std::make_unique<Engines::MaxwellCompute>();
  14. }
  15. GPU::~GPU() = default;
  16. const Tegra::Engines::Maxwell3D& GPU::Get3DEngine() const {
  17. return *maxwell_3d;
  18. }
  19. } // namespace Tegra