pygfx / pyshader

Write modern GPU shaders in Python!
BSD 2-Clause "Simplified" License
73 stars 1 forks source link

WebGPU shading language (WGSL) #30

Open Korijn opened 4 years ago

Korijn commented 4 years ago

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

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

almarklein commented 4 years ago

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.

Korijn commented 4 years ago

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?

almarklein commented 4 years ago

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).

Korijn commented 4 years ago

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!

almarklein commented 4 years ago

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.