Regarding https://mastodon.gamedev.place/@gob/112450371375832518, the best system for shader code I've used was at Media Molecule on Dreams:
- Any C++ file could embed a PSSL shader with macro begin/end, gets automatically compiled as part of the build process.
- PSSL and C++ shared headers of structs/defines/enums so always in sync.
- Lots of systems supported compiling as both C++ and PSSL (e.g. the whole maths lib, which used clang ext_vector for shader-like syntax/swizzles in C++ too)
...
Hugo Devillers (@[email protected])
All shading languages suck. Moreover, they’re an outdated concept and they’re failing us. https://xol.io/blah/death-to-shading-languages/