teoxoy / encase

Provides a mechanism to lay out data into GPU buffers according to WGSL's memory layout rules
https://crates.io/crates/encase
MIT No Attribution
157 stars 27 forks source link

Generate WGSL to reduce duplication of definitions #7

Open teoxoy opened 2 years ago

stefnotch commented 7 months ago

One potentially tricky part is that the generated WGSL should be written to the disk, so that projects like wgsl-analyzer can actually use the structs and properly suggest autocompletions in the IDE. Otherwise, one works with a partial shader code, and WGSL language servers cannot possibly do their job.

Pinging @victorvde to hear their thoughts on this.