macro_interpreter.h 557 B

123456789101112131415161718192021222324252627
  1. // SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. #include <vector>
  5. #include "common/common_types.h"
  6. #include "video_core/macro/macro.h"
  7. namespace Tegra {
  8. namespace Engines {
  9. class Maxwell3D;
  10. }
  11. class MacroInterpreter final : public MacroEngine {
  12. public:
  13. explicit MacroInterpreter(Engines::Maxwell3D& maxwell3d_);
  14. protected:
  15. std::unique_ptr<CachedMacro> Compile(const std::vector<u32>& code) override;
  16. private:
  17. Engines::Maxwell3D& maxwell3d;
  18. };
  19. } // namespace Tegra