Skip to content
This repository was archived by the owner on Oct 11, 2021. It is now read-only.

WebGPU shading language (WGSL) #30

Open
Korijn opened this issue Mar 10, 2020 · 5 comments
Open

WebGPU shading language (WGSL) #30

Korijn opened this issue Mar 10, 2020 · 5 comments

Comments

@Korijn
Copy link
Collaborator

Korijn commented Mar 10, 2020

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

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

@almarklein
Copy link
Member

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
Copy link
Collaborator Author

Korijn commented Mar 11, 2020

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
Copy link
Member

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
Copy link
Collaborator Author

Korijn commented Mar 11, 2020

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 Korijn changed the title WebGPU shading language WebGPU shading language (WGSL) Mar 11, 2020
@almarklein
Copy link
Member

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 almarklein transferred this issue from pygfx/wgpu-py Apr 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants