yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
6c292d3b
main
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 { 9float f ; 10double d ; 11} bufInst ; 12 13 14uniform writeonly image2D destTex ; 15 16void main () 17{ 18bufInst . d = float ( d1 ) ; 19bufInst . f = float ( d1 + d2 + d3 + d4 ) ; 20 21ivec2 storePos = ivec2 ( gl_GlobalInvocationID . xy ) ; 22double localCoef = length ( vec2 ( ivec2 ( gl_LocalInvocationID . xy ) - 8 ) / 8.0 ) ; 23dvec4 aa = dvec4 ( 0.4 , 0.2 , 0.3 , 0.4 ) ; 24double globalCoef = 1.0 ; 25}