Merge pull request #2892 from greg-lunarg/mb
[platform/upstream/glslang.git] / Test / spv.double.comp
1 #version 430\r
2 \r
3 const double d1 = 3.1415926535897932384626433832795LF;\r
4 const double d2 = 3.1415;\r
5 const double d3 = 3.1415926535897932384626433832795LF;\r
6 const double d4 = 3.1415926535897932384626433832795;\r
7 \r
8 buffer bufName {\r
9     float f;\r
10     double d;\r
11 } bufInst;\r
12 \r
13 \r
14 uniform writeonly image2D destTex;\r
15 \r
16 void main()\r
17 {\r
18     bufInst.d = float(d1);\r
19     bufInst.f = float(d1 + d2 + d3 + d4);\r
20 \r
21     ivec2 storePos = ivec2(gl_GlobalInvocationID.xy);\r
22     double localCoef = length(vec2(ivec2(gl_LocalInvocationID.xy)-8)/8.0);\r
23     dvec4 aa = dvec4(0.4, 0.2, 0.3, 0.4);\r
24     double globalCoef = 1.0;\r
25 }\r