From 44ab0952f0321e2a3b988cc9b3f502c7ab440e5a Mon Sep 17 00:00:00 2001 From: winmad Date: Wed, 22 Mar 2023 22:04:28 -0700 Subject: Create a simplified Falcor material system in slang test (#2721) * Duplicate an example of differentiating Falcor's material system * Add a second BSDF * WIP: update test; grad didn't pass through * Finalize test --------- Co-authored-by: Lifan Wu --- tests/autodiff/material/MaterialSystem.slang | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/autodiff/material/MaterialSystem.slang (limited to 'tests/autodiff/material/MaterialSystem.slang') diff --git a/tests/autodiff/material/MaterialSystem.slang b/tests/autodiff/material/MaterialSystem.slang new file mode 100644 index 000000000..5e733fad9 --- /dev/null +++ b/tests/autodiff/material/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