blob: 32346882681d45b87bd07a0e058cb40ee4984b99 [file] [log] [blame]
LoopDawg9249c702016-07-12 20:44:32 -06001struct PS_OUTPUT
2{
3 float4 Color : SV_Target0;
4 float Depth : SV_Depth;
5};
6
7void MyFunc(in float x, out float y, inout float z)
8{
9 y = x;
10 z = y;
11 x = -1; // no effect since x = in param
12}
13
John Kessenichb50fd172016-10-16 12:12:11 -060014PS_OUTPUT main(noperspective in float4 inpos : SV_Position, out int sampleMask : SV_Coverage)
LoopDawg9249c702016-07-12 20:44:32 -060015{
16 PS_OUTPUT psout;
17
18 float x = 7, y, z = 3;
19 MyFunc(x, y, z);
20
21 psout.Color = float4(x, y, z, 1);
22 psout.Depth = inpos.w;
23
24 return psout;
25}