summaryrefslogtreecommitdiffstats
path: root/tests/diagnostics/array-parameterblock-deeply-nested.slang
blob: 86dcf913b88dc34bb75dfca2e3b06a2c8049bdfa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK):

// Test: Array of deeply nested struct containing ParameterBlock - should error

struct DeeplyNested
{
    struct Inner
    {
        ParameterBlock<int> deepPB;
    }
    Inner inner;
}

[numthreads(4, 1, 1)]
void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID)
{
}

//CHECK: ([[# @LINE+1]]): error 30027
uniform DeeplyNested arrayOfDeeplyNested[4];