I have organized my project so that some shared functionality is kept in separate .wgsl
files. I can load them and dynamically compose them into a single string myself, but then the line reporting for WGSL errors is relative to the beginning of the composed string instead of to the beginning of the respective files.
How is it intended for this to be handled? I found some mention of “source maps” by searching online, but I’m using the C/C++ bindings for wgpu
and I can’t find any reference to this concept in the Rust docs or the structs exposed by the bindings.
How do I get correct line numbers?