Skip to content

Commit

Permalink
HLSL array declarations can be expressions, like "float4 x[(1 + 1) / …
Browse files Browse the repository at this point in the history
…2];" ...
  • Loading branch information
icculus committed Aug 23, 2009
1 parent 7b5812d commit 0c82d0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mojoshader_parser_hlsl.lemon
Expand Up @@ -188,7 +188,7 @@ variable_lowlevel ::= packoffset register.
variable_lowlevel ::= packoffset.
variable_lowlevel ::= register.

scalar_or_array ::= identifier LBRACKET INT_CONSTANT RBRACKET.
scalar_or_array ::= identifier LBRACKET expression RBRACKET.
scalar_or_array ::= identifier.

packoffset ::= PACKOFFSET LPAREN identifier identifier RPAREN.
Expand Down

0 comments on commit 0c82d0f

Please sign in to comment.