1#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 13 14uniform 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} 26