From 3406f27d90a248194991b46d3f5fd89a1fd38b11 Mon Sep 17 00:00:00 2001 From: Sai Praveen Bangaru <31557731+saipraveenb25@users.noreply.github.com> Date: Fri, 21 Apr 2023 10:41:24 -0400 Subject: AD: Various fixes around dynamic dispatch (#2820) * Add a test for the new diff material system * Various fixes for AD - inout primal context params converted to out params, - added attributed types to list of stored types - used differentiated primal func type instead of type of differentiated func to avoid tangling with user-code differential types. --------- Co-authored-by: Lifan Wu --- tests/autodiff/material2/MaterialSystem.slang | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/autodiff/material2/MaterialSystem.slang (limited to 'tests/autodiff/material2/MaterialSystem.slang') diff --git a/tests/autodiff/material2/MaterialSystem.slang b/tests/autodiff/material2/MaterialSystem.slang new file mode 100644 index 000000000..5e733fad9 --- /dev/null +++ b/tests/autodiff/material2/MaterialSystem.slang @@ -0,0 +1,8 @@ +//TEST_IGNORE_FILE: + +__exported import IMaterial; + +IMaterial createMaterialClassConformance(int type, float3 value) +{ + return createDynamicObject(type, value); +} -- cgit v1.2.3