Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
HLSL for loops can have variable declarations: "for (int x=0; x<10; x…
…++) {}"
  • Loading branch information
icculus committed Aug 23, 2009
1 parent 0c82d0f commit c7b43c7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mojoshader_parser_hlsl.lemon
Expand Up @@ -420,6 +420,10 @@ for_details ::= FOR LPAREN SEMICOLON expression SEMICOLON expression RPAREN stat
for_details ::= FOR LPAREN expression SEMICOLON SEMICOLON RPAREN statement.
for_details ::= FOR LPAREN expression SEMICOLON SEMICOLON expression RPAREN statement.
for_details ::= FOR LPAREN expression SEMICOLON expression SEMICOLON RPAREN statement.
for_details ::= FOR LPAREN variable_declaration expression SEMICOLON expression RPAREN statement.
for_details ::= FOR LPAREN variable_declaration SEMICOLON RPAREN statement.
for_details ::= FOR LPAREN variable_declaration SEMICOLON expression RPAREN statement.
for_details ::= FOR LPAREN variable_declaration expression SEMICOLON RPAREN statement.

loop_attribute ::= UNROLL LPAREN INT_CONSTANT RPAREN.
loop_attribute ::= UNROLL.
Expand Down

0 comments on commit c7b43c7

Please sign in to comment.