Merge pull request #2892 from greg-lunarg/mb
[platform/upstream/glslang.git] / Test / spv.ssbo.autoassign.frag
1
2 cbuffer TestCB
3
4     uint W;
5     uint H;
6 }; 
7
8 struct BufType 
9
10     float4 va; 
11     float4 vb; 
12 };
13
14 StructuredBuffer < BufType > SB0; 
15 RWStructuredBuffer < BufType > SB1;
16
17 float4 main(float4 pos : POS) : SV_Target0
18
19     float4 vTmp = SB0[pos.y * W + pos.x].va + SB0[pos.y * W + pos.x].vb;
20
21     vTmp += SB1[pos.y * W + pos.x].va + SB1[pos.y * W + pos.x].vb;
22
23     return vTmp;
24