yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
09c541ee
main
1#version 450 core 2#extension GL_EXT_long_vector : enable 3 4layout ( local_size_x = 1 ) in ; 5 6// Long vectors with literal 2, 3, 4 components must not require LongVectorEXT capability. 7void main () 8{ 9vector < float , 2 > v2 = vector < float , 2 > ( 1.0 , 2.0 ) ; 10vector < float , 3 > v3 = vector < float , 3 > ( 1.0 , 2.0 , 3.0 ) ; 11vector < float , 4 > v4 = vector < float , 4 > ( 1.0 , 2.0 , 3.0 , 4.0 ) ; 12 13v2 += v2 ; 14v3 = v3 * 2.0 ; 15v4 = v4 + vector < float , 4 > ( 0.0 ) ; 16 17int n2 = v2 . length () ; 18int n3 = v3 . length () ; 19int n4 = v4 . length () ; 20}