Closed Trass3r closed 4 months ago
Shaderc's glslc has the following flow:
glslc -mfmt=wgsl a.comp -o a.wgsl
That does:
I think that's what most people will want for targeting WebGPU.
To get that functionality, use Cmake variable SHADERC_ENABLE_WGSL_OUTPUT=ON, and make sure you have the Tint sources in third_party. Sorry that's not documented on the Shader README (yet).
IIRC glslc is not readily installable via apt though and the prebuilt binaries I found don't contain support for webgpu.
This is currently out of scope for glslang, as mentioned glslc is a good alternative here and I see it in Ubuntu's package repository now.
So one doesn't have to guess the workflow: