• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#line 1 "foo.frag"
2Texture2D g_tColor[ 128 ] ;
3
4layout (push_constant) cbuffer PerViewConstantBuffer_t
5{
6    uint g_nDataIdx;
7    uint g_nDataIdx2;
8    bool g_B;
9} ;
10
11SamplerState g_sAniso;
12
13struct PS_INPUT
14{
15    float2 vTextureCoords : TEXCOORD2 ;
16} ;
17
18struct PS_OUTPUT
19{
20    float4 vColor : SV_Target0 ;
21} ;
22
23PS_OUTPUT MainPs ( PS_INPUT i )
24{
25    PS_OUTPUT ps_output ;
26
27    uint u;
28#line 47
29    if (g_B)
30#line 3 "foo.h"
31        u = g_nDataIdx;
32    else
33#line 67
34        u = g_nDataIdx2;
35#line 7 "foo2.h"
36    ps_output . vColor = g_tColor [ u ] . Sample ( g_sAniso , i . vTextureCoords . xy );
37#line 105
38    return ps_output ;
39}
40
41