pygfx / pyshader

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

Allow creating modules with multiple entry points? #10

Open almarklein opened 4 years ago

almarklein commented 4 years ago

Or ... maybe not. GLSL modules have one entry point, so we'd exclude compiling to GLSL. At the least wait until we know if WSL supports this too.

Pro's:

Korijn commented 4 years ago

Why?

almarklein commented 4 years ago

SpirV and WSL support it. But yeah, maybe this is mainly to allow writing multiple shaders in a single file. We already allow that (e.g. using the decorator multiple times on a function). So it could well be that there is no benefit.

Edit: That's why the title of this issues ends with a question mark :)