mirror of
https://github.com/starr-dusT/yuzu-mainline
synced 2024-03-05 21:12:25 -08:00
cfd9f7d25b
Same behavior, but less code and header dependencies.
30 lines
616 B
C++
30 lines
616 B
C++
// 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_);
|
|
~HLEMacro();
|
|
|
|
// 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;
|
|
|
|
private:
|
|
Engines::Maxwell3D& maxwell3d;
|
|
};
|
|
|
|
} // namespace Tegra
|