2020-05-28 21:53:27 -07:00
|
|
|
// Copyright 2020 yuzu Emulator Project
|
2018-03-28 13:14:47 -07:00
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
2022-01-25 11:03:46 -08:00
|
|
|
|
2020-05-28 21:53:27 -07:00
|
|
|
#include <vector>
|
2022-01-25 11:03:46 -08:00
|
|
|
|
2018-03-28 13:14:47 -07:00
|
|
|
#include "common/common_types.h"
|
2020-05-28 21:53:27 -07:00
|
|
|
#include "video_core/macro/macro.h"
|
2018-03-28 13:14:47 -07:00
|
|
|
|
|
|
|
namespace Tegra {
|
|
|
|
namespace Engines {
|
|
|
|
class Maxwell3D;
|
|
|
|
}
|
|
|
|
|
2020-05-28 21:53:27 -07:00
|
|
|
class MacroInterpreter final : public MacroEngine {
|
2018-03-28 13:14:47 -07:00
|
|
|
public:
|
2020-12-04 11:39:12 -08:00
|
|
|
explicit MacroInterpreter(Engines::Maxwell3D& maxwell3d_);
|
2018-03-28 13:14:47 -07:00
|
|
|
|
2020-05-28 21:53:27 -07:00
|
|
|
protected:
|
|
|
|
std::unique_ptr<CachedMacro> Compile(const std::vector<u32>& code) override;
|
2018-03-28 13:14:47 -07:00
|
|
|
|
|
|
|
private:
|
2020-05-28 21:53:27 -07:00
|
|
|
Engines::Maxwell3D& maxwell3d;
|
|
|
|
};
|
2018-03-28 13:14:47 -07:00
|
|
|
|
|
|
|
} // namespace Tegra
|