macro_hle.h 521 B

12345678910111213141516171819202122232425262728
  1. // Copyright 2020 yuzu Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. #include <memory>
  6. #include <optional>
  7. #include "common/common_types.h"
  8. namespace Tegra {
  9. namespace Engines {
  10. class Maxwell3D;
  11. }
  12. class HLEMacro {
  13. public:
  14. explicit HLEMacro(Engines::Maxwell3D& maxwell3d_);
  15. ~HLEMacro();
  16. std::optional<std::unique_ptr<CachedMacro>> GetHLEProgram(u64 hash) const;
  17. private:
  18. Engines::Maxwell3D& maxwell3d;
  19. };
  20. } // namespace Tegra