diff options
| author | Yong He <yonghe@outlook.com> | 2022-10-27 11:06:14 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-27 11:06:14 -0700 |
| commit | 8e11063bfcec528e70f5e80e5db9fca7d4016737 (patch) | |
| tree | 60a4a492e732479bb1f72e76675b2b494c140b6b /source/slang/slang-ast-support-types.h | |
| parent | f7f0dcadd3b2aca4c0bcd03a96e11c617cf69fc2 (diff) | |
Auto synthesis of IDifferntial interface methods. (#2469)
* Auto synthesis of IDifferntial interface methods.
* Add comments.
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-ast-support-types.h')
| -rw-r--r-- | source/slang/slang-ast-support-types.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source/slang/slang-ast-support-types.h b/source/slang/slang-ast-support-types.h index 9a32d816c..61580ca9e 100644 --- a/source/slang/slang-ast-support-types.h +++ b/source/slang/slang-ast-support-types.h @@ -1490,10 +1490,13 @@ namespace Slang kParameterDirection_Ref, ///< By-reference }; - /// The type of a builtin associated type requirement. - enum class BuiltinAssociatedTypeRequirementKind + /// The kind of a builtin interface requirement that can be automatically synthesized. + enum class BuiltinRequirementKind { - Differential + DifferentialType, ///< The `IDifferentiable.Differential` associated type requirement + DZeroFunc, ///< The `IDifferentiable.dzero` function requirement + DAddFunc, ///< The `IDifferentiable.dadd` function requirement + DMulFunc, ///< The `IDifferentiable.dmul` function requirement }; } // namespace Slang |
