2020-06-04 17:42:19 +02: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 <optional>
|
|
|
|
#include "common/common_types.h"
|
|
|
|
|
|
|
|
namespace Tegra {
|
|
|
|
|
|
|
|
namespace Engines {
|
|
|
|
class Maxwell3D;
|
|
|
|
}
|
|
|
|
|
|
|
|
class HLEMacro {
|
|
|
|
public:
|
2020-12-04 20:39:12 +01:00
|
|
|
explicit HLEMacro(Engines::Maxwell3D& maxwell3d_);
|
2020-06-04 17:42:19 +02:00
|
|
|
~HLEMacro();
|
2020-06-24 04:18:33 +02:00
|
|
|
|
2020-06-04 17:42:19 +02:00
|
|
|
std::optional<std::unique_ptr<CachedMacro>> GetHLEProgram(u64 hash) const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
Engines::Maxwell3D& maxwell3d;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace Tegra
|