summaryrefslogtreecommitdiffstats
path: root/tests/spirv/nested-entrypoint.slang
blob: 28e9b9c4a4402e828dfcf6b5f9599938c86ac7cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//TEST:SIMPLE(filecheck=CHECK): -target spirv -fvk-use-entrypoint-name

// CHECK: OpEntryPoint

RWStructuredBuffer<int> output;

[shader("compute")]
[numthreads(1,1,1)]
void innerMain(int id : SV_DispatchThreadID)
{
    output[id] = id;
}

[shader("compute")]
[numthreads(1,1,1)]
void outerMain(int id : SV_DispatchThreadID)
{
    innerMain(id);
}