summaryrefslogtreecommitdiffstats
path: root/src/video_core/macro/macro_hle.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2022-01-25 19:50:10 +0100
committerLioncash <mathew1800@gmail.com>2022-01-25 19:50:14 +0100
commitcfd9f7d25b4c1aea49b4dc017990f12142b8302b (patch)
tree7ab83e57f2340b5447738cdc195489312e530a54 /src/video_core/macro/macro_hle.h
parentvideo_core/macro: Remove unused parameter from Execute() (diff)
downloadyuzu-cfd9f7d25b4c1aea49b4dc017990f12142b8302b.tar
yuzu-cfd9f7d25b4c1aea49b4dc017990f12142b8302b.tar.gz
yuzu-cfd9f7d25b4c1aea49b4dc017990f12142b8302b.tar.bz2
yuzu-cfd9f7d25b4c1aea49b4dc017990f12142b8302b.tar.lz
yuzu-cfd9f7d25b4c1aea49b4dc017990f12142b8302b.tar.xz
yuzu-cfd9f7d25b4c1aea49b4dc017990f12142b8302b.tar.zst
yuzu-cfd9f7d25b4c1aea49b4dc017990f12142b8302b.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/macro/macro_hle.h5
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;