Open almarklein opened 4 years ago
Why?
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 :)
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: