From 05547e25353dd797791c2937679468d529d832d5 Mon Sep 17 00:00:00 2001 From: venkataram-nv Date: Tue, 16 Jul 2024 14:54:53 -0700 Subject: Warnings function parameters (#4626) * Handle out/inout functions with separate consideration * Fixing bug with passing aliasable instructions * Handle autodiff functions (fwd and rev) in warning system * Handling interface methods * Handling ref parameters like out/inout * Temporary fix to remaining bugs * Refactoring methods and tests * Recursive check for empty structs * Using default initializable interface in tests * Resolving CI fail --- tests/compute/empty-struct2.slang | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/compute/empty-struct2.slang') diff --git a/tests/compute/empty-struct2.slang b/tests/compute/empty-struct2.slang index 27e587b42..303cfd234 100644 --- a/tests/compute/empty-struct2.slang +++ b/tests/compute/empty-struct2.slang @@ -25,8 +25,8 @@ struct EmptyS : IEmptyS struct Empty : IInterface { typedef TT T; - TT value; - float a; + TT value = TT(); + float a = 0; TT getT() { return value; @@ -51,4 +51,4 @@ void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID) Empty obj; test(obj); outputBuffer[dispatchThreadID.x] = dispatchThreadID.x; -} \ No newline at end of file +} -- cgit v1.2.3