blob: 4a86bfb8defcc14d3d7d713bd081409f44d58dcc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
//TEST:SIMPLE(filecheck=CHECK):-target spirv
//CHECK-NOT: OpCompositeConstruct
//CHECK-COUNT-1: OpStore
struct Data
{
int bigArray[8];
int fetch(int i)
{
return bigArray[i];
}
}
ParameterBlock<Data> pData;
uniform int* result;
[numthreads(16,1,1)]
void main(int id : SV_DispatchThreadID)
{
*result = pData.fetch(id);
}
|