diff options
| -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) { |
