From d2a467c7a941c4453b3d825c9d5bb4d72230c8ba Mon Sep 17 00:00:00 2001 From: Sai Praveen Bangaru <31557731+saipraveenb25@users.noreply.github.com> Date: Thu, 16 Jun 2022 11:03:59 -0400 Subject: Added a decorator to mark functions for forward-mode differentiation (#2283) --- source/slang/core.meta.slang | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/slang/core.meta.slang') 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] -- cgit v1.2.3