• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1GEOM
2PROPERTY GS_INPUT_PRIMITIVE TRIANGLES
3PROPERTY GS_OUTPUT_PRIMITIVE TRIANGLE_STRIP
4PROPERTY GS_MAX_OUTPUT_VERTICES 3
5DCL IN[][0], POSITION, CONSTANT
6DCL IN[][1], COLOR, CONSTANT
7DCL OUT[0], POSITION, CONSTANT
8DCL OUT[1], COLOR, CONSTANT
9
10MOV OUT[0], IN[0][0]
11ADD OUT[1], IN[0][1], IN[1][1]
12EMIT
13
14MOV OUT[0], IN[1][0]
15ADD OUT[1], IN[1][1], IN[2][1]
16EMIT
17
18MOV OUT[0], IN[2][0]
19ADD OUT[1], IN[2][1], IN[0][1]
20EMIT
21
22ENDPRIM
23
24END
25