diff options
| author | venkataram-nv <vedavamadath@nvidia.com> | 2024-07-16 14:54:53 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-16 14:54:53 -0700 |
| commit | 05547e25353dd797791c2937679468d529d832d5 (patch) | |
| tree | bc53e95b7b9e69474b83da3e5947712665c4664a /tests/autodiff/material2 | |
| parent | b5174b473ffb41e92b4efc844f60d7239f3322a3 (diff) | |
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
Diffstat (limited to 'tests/autodiff/material2')
| -rw-r--r-- | tests/autodiff/material2/MxWeights.slang | 6 |
1 files changed, 6 insertions, 0 deletions
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<let TBsdfCount : int> { public float3 weights[TBsdfCount]; + + public __init() + { + for (int i = 0; i < TBsdfCount; i++) + weights[i] = float3(0.0f); + } } public interface IMxLayeredMaterialData |
