diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2025-10-13 23:14:45 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-13 22:14:45 +0800 |
| commit | 96df31a9fa53e3d897a2b7c4eef021f37f421c91 (patch) | |
| tree | 46cfb983265ce63b619da3b18004d2c163371d2c /tests/diagnostics/array-parameterblock-direct.slang | |
| parent | f5a3a6dc6a98d22964154f809f9e0dcae30ab67f (diff) | |
Fix segfault on arrays of structs containing parameter blocks (#8555)
Closes https://github.com/shader-slang/slang/issues/8154 However there
is further design work to do on implementing the "NonAddressableType"
suggestion
Diffstat (limited to 'tests/diagnostics/array-parameterblock-direct.slang')
| -rw-r--r-- | tests/diagnostics/array-parameterblock-direct.slang | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/diagnostics/array-parameterblock-direct.slang b/tests/diagnostics/array-parameterblock-direct.slang new file mode 100644 index 000000000..b94aa4f60 --- /dev/null +++ b/tests/diagnostics/array-parameterblock-direct.slang @@ -0,0 +1,11 @@ +//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK): + +// Test: Direct array of ParameterBlock - should error + +[numthreads(4, 1, 1)] +void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID) +{ +} + +//CHECK: ([[# @LINE+1]]): error 30027 +uniform ParameterBlock<float> qs[2];
\ No newline at end of file |
