suyu/src/video_core/macro/macro_hle.h

30 lines
616 B
C++
Raw Normal View History

2020-06-04 11:42:19 -04:00
// Copyright 2020 yuzu Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#pragma once
#include <memory>
#include "common/common_types.h"
namespace Tegra {
namespace Engines {
class Maxwell3D;
}
class HLEMacro {
public:
explicit HLEMacro(Engines::Maxwell3D& maxwell3d_);
2020-06-04 11:42:19 -04:00
~HLEMacro();
2020-06-23 22:18:33 -04:00
// Allocates and returns a cached macro if the hash matches a known function.
// Returns nullptr otherwise.
[[nodiscard]] std::unique_ptr<CachedMacro> GetHLEProgram(u64 hash) const;
2020-06-04 11:42:19 -04:00
private:
Engines::Maxwell3D& maxwell3d;
};
} // namespace Tegra