yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
1cfc0f9e
main
1struct FxaaTex {SamplerState smpl ;Texture2D tex ; }; 2SamplerState g_tInputTexture_sampler ;Texture2D g_tInputTexture ; 3 4float4 lookUp (FxaaTex tex ) 5{ 6return tex .tex .Sample (tex .smpl ,float2 (0.3 ,0.4 )); 7} 8 9FxaaTex fillOpaque () 10{ 11FxaaTex t ; 12t .smpl = g_tInputTexture_sampler ; 13t .tex = g_tInputTexture ; 14return t ; 15} 16 17float4 main () :SV_TARGET0 18{ 19FxaaTex tex1 = {g_tInputTexture_sampler ,g_tInputTexture }; 20float4 res = lookUp (tex1 ); 21FxaaTex tex2 = fillOpaque (); 22res += lookUp (tex2 ); 23FxaaTex tex3 = tex1 ; 24res += lookUp (tex3 ); 25 26return res ; 27}