yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
fdf6347f
main
1void ShaderFunction (float inf ) :COLOR0 2{ 3float3x4 m ; 4 5// tests that convert to non-matrix swizzles 6 7m ._34 = 1.0 ;// AST should have a normal component select 8m ._m23 = 2.0 ;// same code 9m [2 ][3 ]= 2.0 ;// same code 10 11m ._11_12_13_14 = float4 (3.0 );// AST should have normal column selection (first row) 12m ._m10_m11_m12_m13 = float4 (3.0 );// AST should have normal column selection (second row) 13m [1 ]= float4 (3.0 );// same code 14 15// tests that stay as matrix swizzles 16 17float3 f3 ; 18m ._11_22_23 = f3 ; 19m ._21_12_31 = float3 (5.0 ); 20m ._11_12_21 = 2 * f3 ; 21 22// r-value 23f3 = m ._21_12_31 ; 24} 25 26float3x3 createMat3x3 (float3 a ,float3 b ,float3 c ) 27{ 28float3x3 m ; 29m ._11_21_31 = a ; 30m ._12_22_32 = b ; 31m ._13_23_33 = c ; 32return m ; 33}