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/autodiff/material2/MxWeights.slang | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/autodiff') diff --git a/tests/autodiff/material2/MxWeights.slang b/tests/autodiff/material2/MxWeights.slang index 1e9c7d36c..244d97c73 100644 --- a/tests/autodiff/material2/MxWeights.slang +++ b/tests/autodiff/material2/MxWeights.slang @@ -3,6 +3,12 @@ public struct MxWeights { public float3 weights[TBsdfCount]; + + public __init() + { + for (int i = 0; i < TBsdfCount; i++) + weights[i] = float3(0.0f); + } } public interface IMxLayeredMaterialData -- cgit v1.2.3