summaryrefslogtreecommitdiff
path: root/source/slang/slang-ast-expr.h
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-10-24 22:19:38 -0700
committerGitHub <noreply@github.com>2022-10-24 22:19:38 -0700
commit41cb7c13e37ec32ffb6557d21da079d77151e136 (patch)
tree38d2c44938e2679c42c5c0e73f5411e59015df93 /source/slang/slang-ast-expr.h
parent1093218d6f0e114eb9fa52d60ca525bf9dd9f98a (diff)
Rework differentiation of member access through `[DerivativeMember(DiffType.field)]` (#2460)
* wip: remove auto-diff for member access, add diff through property accessors. * Fix getter-setter test. * Fix getter-setter-multi test. * Fix nested-jvp test. * Use [DerivativeMember] attribute to differentiate through member access. * Clean up. * More cleanup. Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-ast-expr.h')
-rw-r--r--source/slang/slang-ast-expr.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/source/slang/slang-ast-expr.h b/source/slang/slang-ast-expr.h
index e0a55cc29..baa6de73a 100644
--- a/source/slang/slang-ast-expr.h
+++ b/source/slang/slang-ast-expr.h
@@ -38,18 +38,6 @@ class VarExpr : public DeclRefExpr
SLANG_AST_CLASS(VarExpr)
};
-class DifferentiableDeclRefExpr : public Expr
-{
- SLANG_AST_CLASS(DifferentiableDeclRefExpr)
-
- // Inner decl ref expr that references a differentiable expression.
- Expr* inner = nullptr;
-
- // Information on getters and setters if available.
- Expr* setterExpr = nullptr;
- Expr* getterExpr = nullptr;
-};
-
// An expression that references an overloaded set of declarations
// having the same name.
class OverloadedExpr : public Expr