HLSL struct fields can have semantics.
authorRyan C. Gordon <icculus@icculus.org>
Sun, 23 Aug 2009 01:28:43 -0400
changeset 781 8b80cf8692a4
parent 780 4a35087ba839
child 782 778852cf7aaf
HLSL struct fields can have semantics.
mojoshader_parser_hlsl.lemon
--- a/mojoshader_parser_hlsl.lemon	Sun Aug 23 01:25:43 2009 -0400
+++ b/mojoshader_parser_hlsl.lemon	Sun Aug 23 01:28:43 2009 -0400
@@ -178,6 +178,7 @@
 struct_member_details ::= datatype struct_member_item_list SEMICOLON.
 
 struct_member_item_list ::= scalar_or_array.
+struct_member_item_list ::= scalar_or_array semantic.
 struct_member_item_list ::= struct_member_item_list COMMA identifier.
 
 typedef_statement ::= TYPEDEF CONST datatype scalar_or_array.