shader-slang / slang

Making it easier to work with shaders
http://shader-slang.com
Other
3.29k stars 220 forks source link

Slang Submodule (better for offine support) #5727

Open TheforgottenDreamer opened 1 week ago

TheforgottenDreamer commented 1 week ago

So the project needs get built version of the slang fork of googles dawn project for webgpu and slang-tint downloaded from githubs downloads. I feel like these can remain submodules instead of downloaded zips

TheforgottenDreamer commented 1 week ago

I do get where the idea of downloading comes from dawns submodules too

csyonghe commented 1 week ago

These google projects have complex setup requirements that we do not wish to pass to most Slang developers. After all 99% of Slang development is not directly related to WebGPU and it would be easier if most developers don't have to worry about building these google code themselves.

Using submodules would mean everyone need to have bazel + many google dependencies configured on their machine in order to start developing Slang code, which is a big downside. Slang does not really depend on these libraries, and we only use them for testing webgpu shaders, so they are not technically required to exist locally.