Front-end: Fix missing tessellation shader built-in qualifiers.

The gl_in array has a special path due to context-specific
gl_MaxPatchVertices, making the code out of order for tagging built-ins.
This commit moves the tagging to the correct location.
This also fixes issue #80.
This commit is contained in:
John Kessenich 2015-10-13 17:23:10 -06:00
parent e690332c3c
commit b5c046e58b
12 changed files with 245 additions and 218 deletions

View file

@ -56,6 +56,9 @@ Linked tessellation evaluation stage:
Name 93 "ivla"
Name 94 "ivlb"
Name 97 "ovla"
MemberDecorate 17(gl_PerVertex) 0 BuiltIn Position
MemberDecorate 17(gl_PerVertex) 1 BuiltIn PointSize
MemberDecorate 17(gl_PerVertex) 2 BuiltIn ClipDistance
Decorate 17(gl_PerVertex) Block
Decorate 38(gl_PatchVerticesIn) BuiltIn PatchVertices
Decorate 41(gl_PrimitiveID) BuiltIn PrimitiveId