diff options
| author | Yong He <yonghe@outlook.com> | 2022-11-23 16:09:10 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-23 16:09:10 -0800 |
| commit | d4787e92253cf963f590d62522e82ce8285fc751 (patch) | |
| tree | e6501a2d855c579da88b21ca46d321eb816ff2c0 | |
| parent | 4ad0470025da4e808c46023f9a2525febcf973a2 (diff) | |
Update comments in test. (#2529)
Co-authored-by: Yong He <yhe@nvidia.com>
| -rw-r--r-- | tests/autodiff/generic-autodiff-1.slang | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/autodiff/generic-autodiff-1.slang b/tests/autodiff/generic-autodiff-1.slang index db7ae7e87..43a6d3b10 100644 --- a/tests/autodiff/generic-autodiff-1.slang +++ b/tests/autodiff/generic-autodiff-1.slang @@ -1,4 +1,4 @@ -// Test calling differentiable function through dynamic dispatch. +// Test calling differentiable generic function with inout generic parameter. //TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -shaderobj -output-using-type //TEST(compute, vulkan):COMPARE_COMPUTE_EX:-vk -compute -shaderobj -output-using-type @@ -20,16 +20,12 @@ struct A : IInterface float sample() { z = z + 1.0; return 1.0; } }; - [ForwardDifferentiable] float sqr<T:IInterface>(inout T obj, float x) { return obj.sample() + x*x; } -//TEST_INPUT: type_conformance A:IInterface = 0 - - [numthreads(1, 1, 1)] void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID) { |
