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 aColor v1 14#define aPointSize v2 15 16// Output registers map 17#define vPosition o0 18#define vQuaternion o1 19#define vView o2 20#define vTexCoord o3 21 22#define uProjection c0 23#define uModelView c4 24 25#define TEMP_VIEW r0 26 27#pragma bind_symbol(aPosition.xyzw,v0,v0) 28#pragma bind_symbol(aColor.x,v1,v1) 29#pragma bind_symbol(aPointSize.x,v2,v2) 30 31#pragma output_map (position, o0) 32#pragma output_map (generic, o1) 33#pragma output_map (texture0, o2.xy) 34#pragma output_map (color, o3) 35 36#pragma bind_symbol(uProjection,c0,c3) 37#pragma bind_symbol(uModelView,c4,c7) 38 39l_position: 40 m4x4 TEMP_VIEW, aPosition, uModelView 41 m4x4 vPosition, TEMP_VIEW, uProjection 42 ret 43 nop 44 45main: 46 call l_position 47 mov o1, aPointSize.x 48 mov o2, r0 // dummy output 49 mov o3, aColor.xxxx 50 end 51endmain: 52