blob: ec92428caf67454f3cf6f803d3f857567dacbac1 [file] [log] [blame]
xaviereb71cdd2017-08-24 08:28:57 +02001#define DLAYER 3
2
3#define DMACRO1 TEXCOORD1
4#define DMACRO(num) TEXCOORD##num
5
6struct S {
7 float4 pos : POSITION;
8 float2 UV0 : TEXCOORD0;
9 float2 UV1 : DMACRO1;
10 float2 UV2 : DMACRO(2);
11 float2 UV3 : DMACRO(DLAYER);
12};
13
14
15S main(float4 v : POSITION)
16{
17 S s;
18 s.pos = v;
19 s.UV0 = float2(v.x,v.x);
20 s.UV1 = float2(v.y,v.y);
21 s.UV2 = float2(v.z,v.z);
22 s.UV3 = float2(v.w,v.w);
23 return s;
24}