summaryrefslogtreecommitdiff
path: root/source/slang/diff.meta.slang
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/diff.meta.slang')
-rw-r--r--source/slang/diff.meta.slang4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/slang/diff.meta.slang b/source/slang/diff.meta.slang
index 26fec224c..f314e0487 100644
--- a/source/slang/diff.meta.slang
+++ b/source/slang/diff.meta.slang
@@ -18,6 +18,10 @@ attribute_syntax [__custom_jvp(function)] : CustomJVPAttribute;
__magic_type(DifferentiableType)
interface IDifferentiable
{
+ // Note: the compiler implementation requires the `Differential` associated type to be defined
+ // before anything else.
+
+ [__BuiltinAssociatedTypeRequirementAttribute(_BuiltinAssociatedTypeRequirementKind.Differential)]
associatedtype Differential;
static Differential zero();