diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2025-09-04 04:05:26 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-03 20:05:26 +0000 |
| commit | a766d27447aa0fcf69334c0467d9b1124892e180 (patch) | |
| tree | 67ca5615e4a8c94d7454ee43375eeffc8c8a7d4c /tests/diagnostics/recursive-type.slang | |
| parent | bf607e2f3fa183e9a2b18c7a98438a05247d6ed3 (diff) | |
Diagnose on structured buffers containing resources (#8222)
closes https://github.com/shader-slang/slang/issues/3313
Diffstat (limited to 'tests/diagnostics/recursive-type.slang')
| -rw-r--r-- | tests/diagnostics/recursive-type.slang | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/diagnostics/recursive-type.slang b/tests/diagnostics/recursive-type.slang index 90f49aa86..ccf7da1f8 100644 --- a/tests/diagnostics/recursive-type.slang +++ b/tests/diagnostics/recursive-type.slang @@ -6,9 +6,11 @@ struct Outer { Outer next; // non-pointer int y; }; -RWStructuredBuffer<Outer> Buf; +RWStructuredBuffer<int> Buf; [numthreads(1,1,1)] void csmain() { - Buf[0].y = 0; -}
\ No newline at end of file + Outer outer; + outer.y = 0; + Buf[0] = outer.y; +} |
