blob: 6397e6305b75d7bfef083bc00d430d3de69a636a [file] [log] [blame]
John Kessenichabde37f2015-05-15 21:36:01 +00001#version 430
2
3const double d1 = 3.1415926535897932384626433832795LF;
4const double d2 = 3.1415;
5const double d3 = 3.1415926535897932384626433832795LF;
6const double d4 = 3.1415926535897932384626433832795;
7
8buffer bufName {
9 float f;
10 double d;
11} bufInst;
12
John Kessenich6c292d32016-02-15 20:58:50 -070013
John Kessenichabde37f2015-05-15 21:36:01 +000014uniform writeonly image2D destTex;
15
16void main()
17{
18 bufInst.d = float(d1);
19 bufInst.f = float(d1 + d2 + d3 + d4);
20
21 ivec2 storePos = ivec2(gl_GlobalInvocationID.xy);
22 double localCoef = length(vec2(ivec2(gl_LocalInvocationID.xy)-8)/8.0);
23 dvec4 aa = dvec4(0.4, 0.2, 0.3, 0.4);
24 double globalCoef = 1.0;
25}