summaryrefslogtreecommitdiffstats
path: root/src/video_core/shader/ast.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/video_core/shader/ast.h')
-rw-r--r--src/video_core/shader/ast.h12
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) {