shaders are perfectly suited for functional programming and yet every major shader language is brutally imperative. it’s horrible. does anyone know how one might go about writing an alternative shader language? is there a shader version of assembly i can compile to???
Are you referring to first-class functions? GLSL actually has a lot of immutability and minimal shared mutable state, which is nice…
-
-
the entire style of programming. it's just terribly imperative
-
but just as a trivial example, in principle it ought to be very simple to define a handful of combinators for doing standard things -- drawing shapes, transformations on shaders, etc etc. but you basically cant
- 3 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.