From b8617af2888db01f80efba9e0a103e6a61989c9c Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Thu, 24 Mar 2022 11:42:56 -0400 Subject: Fix for default initialization with generic field (#2168) * #include an absolute path didn't work - because paths were taken to always be relative. * Fix for = {} initialization with a field that is generic type parameter. * Handling for if a non type is passed to a generic parameter which requires a type. * Small comment improvements. Fix some tab issues. * This fixes the matrix.slang issue. Move the matrix.slang test into bugs as generic-default-matrix.slang --- tests/experiments/generic/matrix.slang | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 tests/experiments/generic/matrix.slang (limited to 'tests/experiments/generic') diff --git a/tests/experiments/generic/matrix.slang b/tests/experiments/generic/matrix.slang deleted file mode 100644 index c55c7be33..000000000 --- a/tests/experiments/generic/matrix.slang +++ /dev/null @@ -1,25 +0,0 @@ -//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -shaderobj - -/* A test to use generics around resource/built in types. - -CRASHES the compiler. - */ - -//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name outputBuffer -RWStructuredBuffer outputBuffer; - -struct Another -{ - matrix values; -}; - -[numthreads(4, 1, 1)] -void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID) -{ - int index = dispatchThreadID.x; - - Another<2, 4> a = {}; - - outputBuffer[index] = index; -} - -- cgit v1.2.3