yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
fba125a9
vulkan-sdk-1.4.350.0
1struct PS_OUTPUT 2{ 3float4 Color : SV_Target0 ; 4float Depth : SV_Depth ; 5} ; 6 7inline void MyFunc ( in float x , out float y , inout float z , in out float w ) 8{ 9y = x ; 10z = y ; 11x = - 1 ; // no effect since x = in param 12w *= 1 ; 13} 14 15PS_OUTPUT main ( noperspective in float4 inpos : SV_Position , out int sampleMask : SV_Coverage ) 16{ 17PS_OUTPUT psout ; 18 19float x = 7 , y , z = 3 ; 20MyFunc ( x , y , z , inpos . w ) ; 21 22psout . Color = float4 ( x , y , z , 1 ) ; 23psout . Depth = inpos . w ; 24 25return psout ; 26}