Merge pull request #2891 from dneto0/hlsl-namespace
[platform/upstream/glslang.git] / Test / hlsl.pp.line.frag
1
2 #line 1
3
4 struct PS_OUTPUT
5 {
6     float4 Color : SV_Target0;
7     float  Depth : SV_Depth;
8 };
9
10 #line 2
11
12 PS_OUTPUT main()
13 {
14    PS_OUTPUT psout;
15
16 #line 123 "SomeFile.frag"
17
18    int thisLineIs = __LINE__;  // gets 124
19
20    psout.Color = float4(thisLineIs, 0, 0, 1);
21    psout.Depth = 1.0;
22
23    return psout;
24 }