ScanMountGoat / wgsl_to_wgpu

Generate typesafe Rust bindings from WGSL shaders to wgpu
MIT License
42 stars 12 forks source link

Support runtime-sized arrays #44

Closed badicsalex closed 1 year ago

ScanMountGoat commented 1 year ago

We can't derive Copy when having Vec in the struct. You can also drop the repr(C) in this case if you'd like. The rest of the changes look good.

badicsalex commented 1 year ago

Oof, you're right. The test harness should probably check if the generated code even compiles.

ScanMountGoat commented 1 year ago

Looks good. Thanks.