diff options
author | Lioncash <mathew1800@gmail.com> | 2019-02-25 15:10:59 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-02-25 15:10:59 +0100 |
commit | c1b2e3562544c7411a3e6408b7710c28cfe3fcb5 (patch) | |
tree | 4deb77cfac6affdceddd1502b891e2a9d27f3445 /src/video_core/shader/track.cpp | |
parent | Merge pull request #2118 from FernandoS27/ipa-improve (diff) | |
download | yuzu-c1b2e3562544c7411a3e6408b7710c28cfe3fcb5.tar yuzu-c1b2e3562544c7411a3e6408b7710c28cfe3fcb5.tar.gz yuzu-c1b2e3562544c7411a3e6408b7710c28cfe3fcb5.tar.bz2 yuzu-c1b2e3562544c7411a3e6408b7710c28cfe3fcb5.tar.lz yuzu-c1b2e3562544c7411a3e6408b7710c28cfe3fcb5.tar.xz yuzu-c1b2e3562544c7411a3e6408b7710c28cfe3fcb5.tar.zst yuzu-c1b2e3562544c7411a3e6408b7710c28cfe3fcb5.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/shader/track.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/video_core/shader/track.cpp b/src/video_core/shader/track.cpp index be4635342..33b071747 100644 --- a/src/video_core/shader/track.cpp +++ b/src/video_core/shader/track.cpp @@ -20,9 +20,9 @@ std::pair<Node, s64> FindOperation(const NodeBlock& code, s64 cursor, return {node, cursor}; } if (const auto conditional = std::get_if<ConditionalNode>(node)) { - const auto& code = conditional->GetCode(); - const auto [found, internal_cursor] = - FindOperation(code, static_cast<s64>(code.size() - 1), operation_code); + const auto& conditional_code = conditional->GetCode(); + const auto [found, internal_cursor] = FindOperation( + conditional_code, static_cast<s64>(conditional_code.size() - 1), operation_code); if (found) return {found, cursor}; } @@ -58,8 +58,8 @@ Node ShaderIR::TrackCbuf(Node tracked, const NodeBlock& code, s64 cursor) { return nullptr; } if (const auto conditional = std::get_if<ConditionalNode>(tracked)) { - const auto& code = conditional->GetCode(); - return TrackCbuf(tracked, code, static_cast<s64>(code.size())); + const auto& conditional_code = conditional->GetCode(); + return TrackCbuf(tracked, conditional_code, static_cast<s64>(conditional_code.size())); } return nullptr; } |