pyshader icon indicating copy to clipboard operation
pyshader copied to clipboard

WebGPU shading language (WGSL)

Open Korijn opened this issue 5 years ago • 5 comments

https://gpuweb.github.io/gpuweb/wgsl.html

Well, there it is! Do we need to do anything in response?

Korijn avatar Mar 10 '20 19:03 Korijn

Nice! Mmm, it's very early days, but we should keep a close eye, and on the tooling. Would be nice if we can eventually support it (via python-shader?), or perhaps even adopt it.

almarklein avatar Mar 10 '20 20:03 almarklein

I suspect there will be a generally available compiler (wgsl to spirv) so we could create a new lib to wrap it with python, or that may not even be necessary if it has a decent API and we can just let the user provide their spirv bytes, I think?

Korijn avatar Mar 11 '20 08:03 Korijn

Yeah, users should be able to bring their own SpirV files anyway, so technically we already support it. We could make an example to demonstrate it (here, or in our higher level libs).

almarklein avatar Mar 11 '20 09:03 almarklein

Yeah, users should be able to bring their own SpirV files anyway, so technically we already support it. We could make an example to demonstrate it (here, or in our higher level libs).

Awesome!

Korijn avatar Mar 11 '20 17:03 Korijn

Moving this issue to the python-shader repo. Which is probably where we should do something, if anything. In wgpu-py we don't deal with shaders.

almarklein avatar Apr 10 '20 09:04 almarklein