brendan-duncan / wgsl_reflect

A WebGPU Shading Language parser and reflection library for Javascript.
MIT License
183 stars 20 forks source link

С/C++ version #25

Open MikhailGorobets opened 1 year ago

MikhailGorobets commented 1 year ago

Are there any plans to create a C/C++ version of the library? That way we can parse WGSL for native WebGPU(Dawn/WGPU), as well as for Wasm

paulgessinger commented 1 year ago

I built something similar for C++: https://github.com/paulgessinger/wgsl-reflect/ It's based on tree-sitter, and is not as full-featured as this library.

brendan-duncan commented 1 year ago

Sorry, I don't have any time these days to do a C++ version. There is always the Tint library, though it's quite heavy.