brendan-duncan/wgsl_reflect

for ++ fails to compile

alienself opened this issue · 3 comments

Hi,

Great library however there is an issue with for loops.
The i++ generates an error and prevents the reflection to happen.

fn foo() {
   for (var i = 0; i < 4; i++) {
   }
}

Thanks, I'll get that fixed shortly. increment operator was added fairly recently, I added the parsing for it, but didn't add the rule to the for loop incrementer.

Should be fixed now

Wow that was fast, amazing! Thanks for this fix!