brendan-duncan / wgsl_reflect

A WebGPU Shading Language parser and reflection library for Javascript.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

for ++ fails to compile

alienself opened this issue · 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!