blob: 1b0df0be8aec92c27752d2d3f87d7b542a805ff9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
//TEST:SIMPLE(filecheck=CHECK): -target spirv
#define FILL_PATTERN_DIMENSIONS_X 16
#define FILL_PATTERN_DIMENSIONS_Y 16
struct FillPatternBuffer
{
float4 px[FILL_PATTERN_DIMENSIONS_Y][FILL_PATTERN_DIMENSIONS_X];
};
StructuredBuffer<FillPatternBuffer> dp;
RWStructuredBuffer<float4> outputBuffer;
// CHECK-NOT: OpCompositeConstruct
[numthreads(4, 4, 1)]
void main(uint3 GTid : SV_GroupThreadID,
uint GI : SV_GroupIndex)
{
const uint ii = GTid.x;
const uint jj = GTid.y;
const float4 pmv = dp[0].px[ii][jj];
outputBuffer[GI] = pmv;
}
|