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 ef6a05c71..86b72e05a 100644 --- a/source/slang/slang-ast-expr.h +++ b/source/slang/slang-ast-expr.h @@ -451,6 +451,14 @@ class ForwardDifferentiateExpr: public HigherOrderInvokeExpr SLANG_AST_CLASS(ForwardDifferentiateExpr) }; + /// An expression of the form `__bwd_diff(fn)` to access the + /// forward-mode derivative version of the function `fn` + /// +class BackwardDifferentiateExpr: public HigherOrderInvokeExpr +{ + SLANG_AST_CLASS(BackwardDifferentiateExpr) +}; + /// A type expression of the form `__TaggedUnion(A, ...)`. /// /// An expression of this form will resolve to a `TaggedUnionType` |
