1GEOM
2PROPERTY GS_INPUT_PRIMITIVE TRIANGLES
3PROPERTY GS_OUTPUT_PRIMITIVE LINE_STRIP
4DCL IN[][0], POSITION, CONSTANT
5DCL IN[][1], COLOR, CONSTANT
6DCL OUT[0], POSITION, CONSTANT
7DCL OUT[1], COLOR, CONSTANT
8
9MOV OUT[0], IN[0][0]
10ADD OUT[1], IN[0][1], IN[0][1]
11EMIT
12
13MOV OUT[0], IN[1][0]
14ADD OUT[1], IN[1][1], IN[1][1]
15EMIT
16
17MOV OUT[0], IN[2][0]
18ADD OUT[1], IN[2][1], IN[2][1]
19EMIT
20
21ENDPRIM
22
23END
24