1 VERT 2 3 DCL IN[0] 4 DCL OUT[0], POSITION 5 DCL OUT[1], COLOR 6 7 DCL TEMP[0] 8 9 DCL ADDR[0] 10 11 IMM FLT32 { 3.0, 1.0, 1.0, 1.0 } 12 IMM FLT32 { 1.0, 0.0, 0.0, 1.0 } 13 IMM FLT32 { 0.0, 1.0, 0.0, 1.0 } 14 IMM FLT32 { 0.0, 0.0, 1.0, 1.0 } 15 IMM FLT32 { 1.0, 1.0, 0.0, 1.0 } 16 IMM FLT32 { 0.0, 1.0, 1.0, 1.0 } 17 18 MOV OUT[0], IN[0] 19 MUL TEMP[0], IN[0], IMM[0] 20 ARL ADDR[0].x, TEMP[0] 21 MOV OUT[1], IMM[ADDR[0].x + 3] 22 23 END 24