diff options
author | Lioncash <mathew1800@gmail.com> | 2019-10-05 14:06:44 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-10-05 14:22:03 +0200 |
commit | 8e0c80f26914552e11144bd92dae726b66c3739d (patch) | |
tree | fc0549a8d69d138bcce209094ce914d63c4f451a /src/video_core/shader/ast.h | |
parent | Merge pull request #2888 from FernandoS27/decompiler2 (diff) | |
download | yuzu-8e0c80f26914552e11144bd92dae726b66c3739d.tar yuzu-8e0c80f26914552e11144bd92dae726b66c3739d.tar.gz yuzu-8e0c80f26914552e11144bd92dae726b66c3739d.tar.bz2 yuzu-8e0c80f26914552e11144bd92dae726b66c3739d.tar.lz yuzu-8e0c80f26914552e11144bd92dae726b66c3739d.tar.xz yuzu-8e0c80f26914552e11144bd92dae726b66c3739d.tar.zst yuzu-8e0c80f26914552e11144bd92dae726b66c3739d.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/shader/ast.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/video_core/shader/ast.h b/src/video_core/shader/ast.h index ba234138e..39f500284 100644 --- a/src/video_core/shader/ast.h +++ b/src/video_core/shader/ast.h @@ -48,11 +48,11 @@ public: void Init(ASTNode first, ASTNode parent); - ASTNode GetFirst() { + ASTNode GetFirst() const { return first; } - ASTNode GetLast() { + ASTNode GetLast() const { return last; } @@ -177,6 +177,10 @@ public: return &data; } + const ASTData* GetInnerData() const { + return &data; + } + ASTNode GetNext() const { return next; } @@ -189,6 +193,10 @@ public: return *manager; } + const ASTZipper& GetManager() const { + return *manager; + } + std::optional<u32> GetGotoLabel() const { auto inner = std::get_if<ASTGoto>(&data); if (inner) { |