diff options
| author | Yong He <yonghe@outlook.com> | 2022-11-01 08:46:57 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-01 08:46:57 -0700 |
| commit | cbc1eff56057f199183bb7c17d8a360326512367 (patch) | |
| tree | 487865e928cd2ceecbb509f0bfd06aa8d9584411 /source/slang/slang-ast-modifier.h | |
| parent | b707a07b1de3535cb0a8ccb6fe2ed4afa4a016d1 (diff) | |
Make `DifferentialPair` able to nest. (#2477)
Diffstat (limited to 'source/slang/slang-ast-modifier.h')
| -rw-r--r-- | source/slang/slang-ast-modifier.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/slang-ast-modifier.h b/source/slang/slang-ast-modifier.h index 76106074f..0c1eb8d49 100644 --- a/source/slang/slang-ast-modifier.h +++ b/source/slang/slang-ast-modifier.h @@ -1016,14 +1016,14 @@ class RequiresNVAPIAttribute : public Attribute }; /// The `[ForwardDifferentiable]` attribute indicates that a function can be forward-differentiated. -class ForwardDifferentiableAttribute : public Attribute +class ForwardDifferentiableAttribute : public DifferentiableAttribute { SLANG_AST_CLASS(ForwardDifferentiableAttribute) }; /// The `[ForwardDerivative(function)]` attribute specifies a custom function that should /// be used as the derivative for the decorated function. -class ForwardDerivativeAttribute : public Attribute +class ForwardDerivativeAttribute : public DifferentiableAttribute { SLANG_AST_CLASS(ForwardDerivativeAttribute) |
