idly thinking about what a modern rendering api might look like for python.
you could do some cool things with the ast module to basically define shaders in python and then cross compile.
the rest of it would be a command queue thing written as a c module, and a nice data driven rendering api for setting up a compositing graph.
and some useful boilerplate like 3d model importing etc.
@JodiTheTigger oh! there is no reason that requires C style syntax for shader languages, I think they just tend to because C++ is popular with games people.
Shaders are generally statically typed and compiled because that is fastest, but even that is not a set in stone requirement.
@JodiTheTigger @aeva what i have in mind is just borrowing python's syntax parser and ast, and doing some fancy type inference stuff to compile down to whatever the api needs (glsl, spirv, etc). So, won't be the full language by any stretch of the imagination, but it'll be a lot nicer than writing glsl etc.
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!