From d4787e92253cf963f590d62522e82ce8285fc751 Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 23 Nov 2022 16:09:10 -0800 Subject: Update comments in test. (#2529) Co-authored-by: Yong He --- tests/autodiff/generic-autodiff-1.slang | 6 +----- 1 file changed, 1 insertion(+), 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(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) { -- cgit v1.2.3