Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/data_extern/programs/Cg/Swizzle.gp @ 12202

Last change on this file since 12202 was 12115, checked in by wiesep, 6 years ago

Changed folder structure, deletet some unused files and cleaned up code

File size: 1.1 KB
Line 
1!!NVgp4.0
2PRIMITIVE_IN TRIANGLES;
3PRIMITIVE_OUT TRIANGLE_STRIP;
4VERTICES_OUT 6;
5# cgc version 2.0.0015, build date May 15 2008
6# command line args: -profile gpu_gp
7# source file: gs_simple.cg
8#vendor NVIDIA Corporation
9#version 2.0.0.15
10#profile gpu_gp
11#program geometry_swizzle
12#semantic geometry_swizzle.position : POSITION
13#var float4 position.__data[0] : $vin.VERTEX[0].POSITION : HPOS[0][32] : 0 : 1
14#var float4 position.__data[1] : $vin.VERTEX[1].POSITION : HPOS[1][32] : 0 : 1
15#var float4 position.__data[2] : $vin.VERTEX[2].POSITION : HPOS[2][32] : 0 : 1
16ATTRIB vertex_position = vertex.position;
17TEMP RC, HC;
18MOV.F result.position, vertex[0].position;
19MOV.F result.color, {1, 0}.xyyx;
20EMIT;
21MOV.F result.position, vertex[1].position;
22MOV.F result.color, {1, 0}.xyyx;
23EMIT;
24MOV.F result.position, vertex[2].position;
25MOV.F result.color, {1, 0}.xyyx;
26EMIT;
27ENDPRIM;
28MOV.F result.position, vertex[0].position.yxzw;
29MOV.F result.color, {0, 1}.xxyy;
30EMIT;
31MOV.F result.position, vertex[1].position.yxzw;
32MOV.F result.color, {0, 1}.xxyy;
33EMIT;
34MOV.F result.position, vertex[2].position.yxzw;
35MOV.F result.color, {0, 1}.xxyy;
36EMIT;
37ENDPRIM;
38END
39# 20 instructions, 0 R-regs
Note: See TracBrowser for help on using the repository browser.