Merge pull request #2976 from jeremy-lunarg/hayes-fix-2975
[platform/upstream/glslang.git] / Test / hlsl.pp.line4.frag
1 #line 1 "C:\\Users\\Greg\\shaders\\line\\foo4.frag"
2 Texture2D g_tColor [ 128 ] ;
3
4 layout ( push_constant ) cbuffer PerViewConstantBuffer_t
5 {
6     uint g_nDataIdx ;
7     uint g_nDataIdx2 ;
8     bool g_B ;
9 } ;
10
11 #line 12
12 SamplerState g_sAniso ;
13
14 struct PS_INPUT
15 {
16     float2 vTextureCoords : TEXCOORD2 ;
17 } ;
18
19 struct PS_OUTPUT
20 {
21     float4 vColor : SV_Target0 ;
22 } ;
23
24 PS_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