diff options
Diffstat (limited to 'source/slang/slang-ast-expr.h')
| -rw-r--r-- | source/slang/slang-ast-expr.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/slang/slang-ast-expr.h b/source/slang/slang-ast-expr.h index c07f7f5b9..f9b8831f1 100644 --- a/source/slang/slang-ast-expr.h +++ b/source/slang/slang-ast-expr.h @@ -544,6 +544,13 @@ class OpenRefExpr : public Expr Expr* innerExpr = nullptr; }; +class DetachExpr : public Expr +{ + SLANG_AST_CLASS(DetachExpr) + + Expr* inner = nullptr; +}; + /// Base class for higher-order function application /// Eg: foo(fn) where fn is a function expression. /// @@ -563,6 +570,7 @@ class DifferentiateExpr : public HigherOrderInvokeExpr { SLANG_ABSTRACT_AST_CLASS(DifferentiateExpr) }; + /// An expression of the form `__fwd_diff(fn)` to access the /// forward-mode derivative version of the function `fn` /// |
