summaryrefslogtreecommitdiffstats
path: root/tests/compute/empty-struct2.slang
diff options
context:
space:
mode:
Diffstat (limited to 'tests/compute/empty-struct2.slang')
-rw-r--r--tests/compute/empty-struct2.slang2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/compute/empty-struct2.slang b/tests/compute/empty-struct2.slang
index 303cfd234..4476bcaa1 100644
--- a/tests/compute/empty-struct2.slang
+++ b/tests/compute/empty-struct2.slang
@@ -48,7 +48,7 @@ void test<Obj : IInterface>(Obj obj)
[numthreads(4, 1, 1)]
void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID)
{
- Empty<EmptyS> obj;
+ Empty<EmptyS> obj = {};
test(obj);
outputBuffer[dispatchThreadID.x] = dispatchThreadID.x;
}