[12115] | 1 | !!NVgp4.0 |
---|
| 2 | PRIMITIVE_IN TRIANGLES; |
---|
| 3 | PRIMITIVE_OUT TRIANGLE_STRIP; |
---|
| 4 | VERTICES_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 |
---|
| 16 | ATTRIB vertex_position = vertex.position; |
---|
| 17 | TEMP RC, HC; |
---|
| 18 | MOV.F result.position, vertex[0].position; |
---|
| 19 | MOV.F result.color, {1, 0}.xyyx; |
---|
| 20 | EMIT; |
---|
| 21 | MOV.F result.position, vertex[1].position; |
---|
| 22 | MOV.F result.color, {1, 0}.xyyx; |
---|
| 23 | EMIT; |
---|
| 24 | MOV.F result.position, vertex[2].position; |
---|
| 25 | MOV.F result.color, {1, 0}.xyyx; |
---|
| 26 | EMIT; |
---|
| 27 | ENDPRIM; |
---|
| 28 | MOV.F result.position, vertex[0].position.yxzw; |
---|
| 29 | MOV.F result.color, {0, 1}.xxyy; |
---|
| 30 | EMIT; |
---|
| 31 | MOV.F result.position, vertex[1].position.yxzw; |
---|
| 32 | MOV.F result.color, {0, 1}.xxyy; |
---|
| 33 | EMIT; |
---|
| 34 | MOV.F result.position, vertex[2].position.yxzw; |
---|
| 35 | MOV.F result.color, {0, 1}.xxyy; |
---|
| 36 | EMIT; |
---|
| 37 | ENDPRIM; |
---|
| 38 | END |
---|
| 39 | # 20 instructions, 0 R-regs |
---|