I've been going down this side project road of wanting to make a #WGSL shader debugger to integrate into my #WebGPU Inspector tool (https://chromewebstore.google.com/detail/webgpu-inspector/holcbbnljhkpkjkhgkagjkhhpeochfal).
I'm making some progress! The "first triangle" of unpolished, incomplete WGSL debugging! The rest should be easy, right?
I do know the example code isn't correct WGSL, int should be i32, and the value of bar should have been converted to an i32, 0. Like I said, unpolished and incomplete.