yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
4ba444b6
vulkan-sdk-1.4.357.0
1 2struct MyStruct { 3sample float a ; 4noperspective float b ; 5linear float c ; 6centroid float d ; 7} ; 8 9int sample ( int x ) { return x ; } // HLSL allows this as an identifier as well. 10 11float4 main () : SV_Target0 12{ 13// HLSL allows this as an identifier as well. 14// However, this is not true of other qualifier keywords such as "linear". 15float4 sample = float4 ( 3 , 4 , 5 , 6 ) ; 16 17return sample . rgba ; // 'sample' can participate in an expression. 18}