summaryrefslogtreecommitdiffstats
path: root/tests/rewriter/varying-struct.slang
blob: 92e9dda2ea037c436b5c447f80ea259a6e9cf184 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//TEST_IGNORE_FILE:

struct VS_IN
{
	float4 x : X;
	float4 y : Y;	
};

struct VS_OUT
{
	float4 color : COLOR;
	float4 posH : SV_Position;
};

VS_OUT doIt(VS_IN i)
{
	VS_OUT o;
	o.color = i.x;
	o.posH = i.y;
	return o;
}