• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1struct FxaaTex { SamplerState smpl; Texture2D tex; float f; };
2SamplerState g_tInputTexture_sampler; Texture2D g_tInputTexture;
3
4float4 lookUp(FxaaTex tex)
5{
6    return tex.tex.Sample(tex.smpl, float2(tex.f, tex.f));
7}
8
9float4 main() : SV_TARGET0
10{
11    FxaaTex tex = { g_tInputTexture_sampler, g_tInputTexture, 0.5 };
12    return lookUp(tex);
13}