diff options
| author | Yong He <yonghe@outlook.com> | 2024-08-19 15:03:56 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-19 15:03:56 -0700 |
| commit | 453683bf44f2112719802eaac2b332d49eebd640 (patch) | |
| tree | d399db4c9cba90c11980186d3df1ffcc4d423b5a /source/slang/slang-ast-expr.h | |
| parent | ecf85df6eee3da76ef54b14e4ab083f22da89e46 (diff) | |
Tuple swizzling, concat, comparison and `countof`. (#4856)
* Tuple swizzling and element access.
* Update proposal status.
* Cleanup.
* Fix merrge error.
* Address review.
Diffstat (limited to 'source/slang/slang-ast-expr.h')
| -rw-r--r-- | source/slang/slang-ast-expr.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source/slang/slang-ast-expr.h b/source/slang/slang-ast-expr.h index e6edce8f9..c07f7f5b9 100644 --- a/source/slang/slang-ast-expr.h +++ b/source/slang/slang-ast-expr.h @@ -291,8 +291,7 @@ class SwizzleExpr: public Expr { SLANG_AST_CLASS(SwizzleExpr) Expr* base = nullptr; - int elementCount; - int elementIndices[4]; + ShortList<UInt, 4> elementIndices; SourceLoc memberOpLoc; }; @@ -425,6 +424,11 @@ class AlignOfExpr : public SizeOfLikeExpr SLANG_AST_CLASS(AlignOfExpr); }; +class CountOfExpr : public SizeOfLikeExpr +{ + SLANG_AST_CLASS(CountOfExpr); +}; + class MakeOptionalExpr : public Expr { SLANG_AST_CLASS(MakeOptionalExpr) |
