diff options
Diffstat (limited to 'src/video_core/macro/macro_hle.h')
-rw-r--r-- | src/video_core/macro/macro_hle.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/video_core/macro/macro_hle.h b/src/video_core/macro/macro_hle.h index c0a12e793..b86ba84a1 100644 --- a/src/video_core/macro/macro_hle.h +++ b/src/video_core/macro/macro_hle.h @@ -5,7 +5,6 @@ #pragma once #include <memory> -#include <optional> #include "common/common_types.h" namespace Tegra { @@ -19,7 +18,9 @@ public: explicit HLEMacro(Engines::Maxwell3D& maxwell3d_); ~HLEMacro(); - std::optional<std::unique_ptr<CachedMacro>> GetHLEProgram(u64 hash) const; + // 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; |