1//
2//------------------------------------------------------------
3// Copyright(c) 2009-2010 by Digital Media Professionals Inc.
4// All rights reserved.
5//------------------------------------------------------------
6// This source code is the confidential and proprietary
7// of Digital Media Professionals Inc.
8//------------------------------------------------------------
9//
10
11// Input registers map
12#define aPosition       v0
13#define aTexCoord       v1
14#define aColor          v2
15
16// Output registers map
17#define vPosition       o0
18#define vTexCoord       o1
19#define vColor          o2
20
21#define CONST               c95     // 0.0 0.5 1.0 3.0
22
23// Constant registers
24def     CONST,              0.0, 0.5, 1.0, 3.0
25
26#pragma bind_symbol( aPosition.xyz, v0, v0)
27#pragma bind_symbol( aTexCoord.xy,  v1, v1)
28#pragma bind_symbol( aColor,        v2, v2)
29
30#pragma output_map ( position, o0 )
31#pragma output_map ( texture0, o1 )
32#pragma output_map ( color,    o2 )
33
34main:
35    mov     vPosition.xyz,      aPosition.xyz
36    mov     vPosition.w,        CONST.z
37    mov     vColor,         aColor
38    mov     vTexCoord,      aTexCoord
39    end
40endmain:
41