6 ms·
hows the experience of writing webgpu code? Last I checked some tutorials out, you still had to write the code inside a string without syntax highlighting. Has
by eachro 3y ago
hows the experience of writing webgpu code? Last I checked some tutorials out, you still had to write the code inside a string without syntax highlighting. Has this changed?
- bschwindHN 3y agoIf you're talking about the shading language WGSL, yes if you inline it in your code you won't have syntax highlighting (unless your editor happens to support that usage). Depending on your code infrastructure you can have it in separate files though with syntax highlighting. It's just a string you pass to an API, after all. It's not really anything to do with WebGPU in particular.
- Widdershin 3y agoTreesitter based highlighting can handle nested languages in some cases, maybe that’s available for your editor?
- pjmlp 3y agoI never understand why people do this, as if writing a little fetch function to load shader files was the end of the world. https://github.com/pjmlp/webgpu https://github.com/pjmlp/webgpu