yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
447c65c9
vulkan-sdk-1.4.350.0
1#version 130 2 3uniform int c ; 4uniform usampler2D us2D ; 5 6in ivec2 x ; 7in vec2 v2a ; 8in float c1D ; 9in vec2 c2D ; 10in vec3 c3D ; 11smooth vec4 c4D ; // ?? 12 13uniform vec4 v4 ; 14 15void main () 16{ 17float f = 3 ; 18switch ( c ) { // full switch testing in switch.frag 19case 1 : 20f = sin ( f ) ; 21break ; 22case 2 : 23f = f * f ; 24default : 25f = 3.0 ; 26} 27 28uint i ; 29i = texture ( us2D , x ) . w ; // full uint testing in uint.frag 30i << 3u | 0x8Au >> 1u & 0xFFu ; 31 32vec3 modfOut , modfIn ; 33vec3 v11 = modf ( modfIn , modfOut ) ; 34float t = trunc ( f ) ; 35vec2 v12 = round ( v2a ) ; 36vec2 v13 = roundEven ( v2a ) ; 37bvec2 b10 = isnan ( v2a ) ; 38bvec4 b11 = isinf ( v4 ) ; 39 40sinh ( c1D ) + 41cosh ( c1D ) * tanh ( c2D ) ; 42asinh ( c4D ) + acosh ( c4D ) ; 43atanh ( c3D ) ; 44 45int id = gl_VertexID ; 46gl_ClipDistance [ 1 ] = 0.3 ; 47} 48 49// version 140 features 50 51//uniform isamplerBuffer sbuf; 52 53//layout(std140) uniform blockName { 54// int anonMem; 55//}; 56 57void foo88 () 58{ 59int id = gl_InstanceID ; // ERROR 60//id += anonMem; 61id += texelFetch ( id , 8 ) ; 62 63gl_ClipVertex ; // these are all present... 64gl_Color ; 65gl_LightSource [ 0 ] ; 66gl_DepthRange . far ; 67gl_TexCoord ; 68gl_FogFragCoord ; 69gl_FrontColor ; 70} 71 72// token pasting 73 74#define mac abc ##def 75int mac ; 76 77#define macr ( A , B ) A ##B 78int macr ( qrs , tuv ) ;