summaryrefslogtreecommitdiff
path: root/tests/compute/empty-struct2.slang
diff options
context:
space:
mode:
authorvenkataram-nv <vedavamadath@nvidia.com>2024-07-16 14:54:53 -0700
committerGitHub <noreply@github.com>2024-07-16 14:54:53 -0700
commit05547e25353dd797791c2937679468d529d832d5 (patch)
treebc53e95b7b9e69474b83da3e5947712665c4664a /tests/compute/empty-struct2.slang
parentb5174b473ffb41e92b4efc844f60d7239f3322a3 (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/compute/empty-struct2.slang')
-rw-r--r--tests/compute/empty-struct2.slang6
1 files changed, 3 insertions, 3 deletions
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<TT : IEmptyS> : 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<EmptyS> obj;
test(obj);
outputBuffer[dispatchThreadID.x] = dispatchThreadID.x;
-} \ No newline at end of file
+}