diff options
| author | ArielG-NV <159081215+ArielG-NV@users.noreply.github.com> | 2024-07-30 23:03:24 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-30 20:03:24 -0700 |
| commit | fef0a87ddee9c0f252a6625395b684b1cb5d85e0 (patch) | |
| tree | 48c3f52e1b4395123d080971e10bc6009f41e8fb /tests/current-bugs | |
| parent | ff6519f0bc11ccb71fe5863d3de92660eeedfb5d (diff) | |
Fix invalid code generation for when using nested resource specialization (#4751)
Diffstat (limited to 'tests/current-bugs')
| -rw-r--r-- | tests/current-bugs/resource-struct-out.slang | 30 | ||||
| -rw-r--r-- | tests/current-bugs/resource-struct-return.slang | 28 |
2 files changed, 0 insertions, 58 deletions
diff --git a/tests/current-bugs/resource-struct-out.slang b/tests/current-bugs/resource-struct-out.slang deleted file mode 100644 index d47b2ec7c..000000000 --- a/tests/current-bugs/resource-struct-out.slang +++ /dev/null @@ -1,30 +0,0 @@ -//DISABLE_TEST:SIMPLE:-target hlsl -entry computeMain -profile cs_6_2 - -// This test demonstrates out parameter with a struct & resource type crashes - -RWTexture1D<float> g_t; - -RWStructuredBuffer<int> outputBuffer; - -struct Thing -{ - int a; - RWTexture1D<float> t; -}; - -void setThing(out Thing t) -{ - t.a = 10; - t.t = g_t; -} - -[numthreads(4, 4, 1)] -void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID) -{ - int x = dispatchThreadID.x; - - Thing thing; - setThing(thing); - - outputBuffer[dispatchThreadID.x] = x + thing.t.Load(1); -} diff --git a/tests/current-bugs/resource-struct-return.slang b/tests/current-bugs/resource-struct-return.slang deleted file mode 100644 index 8d0508097..000000000 --- a/tests/current-bugs/resource-struct-return.slang +++ /dev/null @@ -1,28 +0,0 @@ -//DISABLE_TEST:SIMPLE:-target hlsl -entry computeMain -profile cs_6_2 - -// This test demonstrates returning struct with resource causes internal compiler error - -RWTexture1D<float> g_t; -RWStructuredBuffer<int> outputBuffer; - -struct Thing -{ - int a; - RWTexture1D<float> t; -}; - -Thing makeThing() -{ - Thing t; - t.a = 10; - t.t = g_t; - return t; -} - -[numthreads(4, 4, 1)] -void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID) -{ - int x = dispatchThreadID.x; - Thing thing = makeThing(); - outputBuffer[dispatchThreadID.x] = x + thing.t.Load(1); -}
\ No newline at end of file |
