summaryrefslogtreecommitdiff
path: root/source/slang/core.meta.slang
diff options
context:
space:
mode:
authorSai Praveen Bangaru <31557731+saipraveenb25@users.noreply.github.com>2022-06-16 11:03:59 -0400
committerGitHub <noreply@github.com>2022-06-16 11:03:59 -0400
commitd2a467c7a941c4453b3d825c9d5bb4d72230c8ba (patch)
tree79a72dcdb48436b86b87216a36e4963dcaa36235 /source/slang/core.meta.slang
parent37c43e20fc5ab42d26695c990edf2835952087c8 (diff)
Added a decorator to mark functions for forward-mode differentiation (#2283)
Diffstat (limited to 'source/slang/core.meta.slang')
-rw-r--r--source/slang/core.meta.slang5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/slang/core.meta.slang b/source/slang/core.meta.slang
index 41cfea6af..721529726 100644
--- a/source/slang/core.meta.slang
+++ b/source/slang/core.meta.slang
@@ -71,6 +71,11 @@ syntax snorm : SNormModifier;
///
syntax __extern_cpp : ExternCppModifier;
+/// Modifer to mark a function for forward-mode differentiation.
+/// i.e. the compiler will automatically generate a new function
+/// that computes the jacobian-vector product of the original.
+syntax __differentiate_jvp : JVPDerivativeModifier;
+
/// A type that can be used as an operand for builtins
[sealed]
[builtin]