• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#line 1 "C:\\Users\\Greg\\shaders\\line\\foo4.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
11#line 12
12SamplerState g_sAniso ;
13
14struct PS_INPUT
15{
16    float2 vTextureCoords : TEXCOORD2 ;
17} ;
18
19struct PS_OUTPUT
20{
21    float4 vColor : SV_Target0 ;
22} ;
23
24PS_OUTPUT MainPs ( PS_INPUT i )
25{
26    PS_OUTPUT ps_output ;
27
28    uint u ;
29    if ( g_B )
30
31
32#line 1 "C:\\Users\\Greg\\shaders\\line\\u1.h"
33    u = g_nDataIdx ;
34
35
36#line 31 "C:\\Users\\Greg\\shaders\\line\\foo4.frag"
37    else
38    u = g_nDataIdx2 ;
39    ps_output . vColor = g_tColor [ u ] . Sample ( g_sAniso , i . vTextureCoords . xy ) ;
40    return ps_output ;
41}
42
43