yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
09512cbd
vulkan-sdk-1.4.357.0
1 2struct PS_OUTPUT { float4 color : SV_Target0 ; } ; 3 4int i ; 5uint u ; 6float f ; 7bool b ; 8 9int2 i2 ; 10uint2 u2 ; 11float2 f2 ; 12bool2 b2 ; 13 14Buffer < float > g_tTexbfs ; 15Texture1D < float4 > g_tTex1df4 ; 16uint upos ; 17float fpos ; 18 19PS_OUTPUT main () 20{ 21// Same shapes: 22 23float r00 = max ( b , f ) ; 24uint r01 = max ( b , u ) ; 25int r02 = max ( b , i ) ; 26float r03 = max ( i , f ) ; 27float r04 = max ( u , f ) ; 28 29float2 r10 = max ( b2 , f2 ) ; 30uint2 r11 = max ( b2 , u2 ) ; 31int2 r12 = max ( b2 , i2 ) ; 32float2 r13 = max ( i2 , f2 ) ; 33float2 r14 = max ( u2 , f2 ) ; 34 35float2 r20 = clamp ( i2 , u2 , f2 ) ; // 3 args, converts all to best type. 36uint2 r21 = clamp ( b2 , u2 , b2 ) ; 37float2 r22 = clamp ( b2 , f2 , b2 ) ; 38 39// Mixed shapes: 40float2 r30 = max ( b , f2 ) ; 41uint2 r31 = max ( b , u2 ) ; 42int2 r32 = max ( b , i2 ) ; 43float2 r33 = max ( i , f2 ) ; 44float2 r34 = max ( u , f2 ) ; 45 46float2 r40 = clamp ( i , u2 , f2 ) ; // 3 args, converts all to best type. 47uint2 r41 = clamp ( b2 , u , b2 ) ; 48float2 r42 = clamp ( b2 , f , b ) ; 49int2 r43 = clamp ( i , i2 , u2 ) ; 50 51float r50 = g_tTexbfs . Load ( upos ) ; 52float r51 = g_tTexbfs . Load ( fpos ) ; 53 54int MipLevel ; 55 56uint WidthU ; 57uint HeightU ; 58uint ElementsU ; 59uint DepthU ; 60uint NumberOfLevelsU ; 61uint NumberOfSamplesU ; 62 63int WidthI ; 64int HeightI ; 65int ElementsI ; 66int DepthI ; 67int NumberOfLevelsI ; 68int NumberOfSamplesI ; 69 70g_tTex1df4 . GetDimensions ( WidthI ) ; 71g_tTex1df4 . GetDimensions ( 6 , WidthI , NumberOfLevelsU ) ; 72g_tTex1df4 . GetDimensions ( 6 , WidthU , NumberOfLevelsI ) ; 73g_tTex1df4 . GetDimensions ( 6 , WidthI , NumberOfLevelsI ) ; 74 75// max(i2, f2); 76PS_OUTPUT ps_output ; 77ps_output . color = r00 ; 78return ps_output ; 79} ;