yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
2d8b71fc
main
1#version 450 core 2 3#extension GL_EXT_shader_16bit_storage : enable 4 5struct S 6{ 7float16_t x ; 8f16vec2 y ; 9f16vec3 z ; 10}; 11 12layout (column_major ,std140 )uniform B1 13{ 14float16_t a ; 15f16vec2 b ; 16f16vec3 c ; 17float16_t d [2 ]; 18S g ; 19S h [2 ]; 20int j ; 21}b1 ; 22 23layout (row_major ,std430 )buffer B2 24{ 25float16_t o ; 26f16vec2 p ; 27f16vec3 q ; 28float16_t r [2 ]; 29S u ; 30S v [2 ]; 31f16vec2 x [100 ]; 32float16_t w []; 33}b2 ; 34 35layout (row_major ,std140 )uniform B5 36{ 37float16_t o ; 38f16vec2 p ; 39f16vec3 q ; 40float16_t r [2 ]; 41S u ; 42S v [2 ]; 43f16vec2 x [100 ]; 44float16_t w [100 ]; 45}b5 ; 46 47struct S2 { 48mat4x4 x ; 49float16_t y ; 50float z ; 51}; 52 53struct S3 { 54S2 x ; 55}; 56 57layout (row_major ,std430 )buffer B3 58{ 59S2 x ; 60}b3 ; 61 62layout (column_major ,std430 )buffer B4 63{ 64S2 x ; 65S3 y ; 66}b4 ; 67 68void main () 69{ 70b2 .o = b1 .a ; 71b2 .p = f16vec2 (vec3 (b2 .q ).xy ); 72b2 .p = f16vec2 (vec3 (b5 .q ).xy ); 73b2 .r [0 ]= b2 .r [0 ]; 74b2 .r [1 ]= b5 .r [1 ]; 75b2 .p = b2 .p ; 76float x0 = float (b1 .a ); 77vec4 x1 = vec4 (b1 .a ,b2 .p ,1.0 ); 78b4 .x .x = b3 .x .x ; 79b2 .o = float16_t (vec2 (b2 .p ).x ); 80b2 .p = b2 .v [1 ].y ; 81vec3 v3 = vec3 (b2 .w [b1 .j ],b2 .w [b1 .j + 1 ],b2 .w [b1 .j + 2 ]); 82vec3 u3 = vec3 (b5 .w [b1 .j ],b5 .w [b1 .j + 1 ],b5 .w [b1 .j + 2 ]); 83b2 .x [0 ]= b2 .x [0 ]; 84b2 .x [1 ]= b5 .x [1 ]; 85b2 .p .x = b1 .a ; 86b2 .o = b2 .p .x ; 87b2 .p = f16vec2 (vec2 (1.0 ,2.0 )); 88b2 .o = float16_t (3.0 ); 89b2 .o = float16_t (b1 .a ); 90b2 .p = f16vec2 (b1 .b ); 91b2 .q = f16vec3 (b1 .c ); 92} 93