diff options
Diffstat (limited to 'tests/compute/empty-struct2.slang')
| -rw-r--r-- | tests/compute/empty-struct2.slang | 6 |
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 +} |
