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???
-
-
For GLSL, that it's `void main() { ... }` and not `OutData main(InData input) { ... }` is fairly, err, imperative. (Although, since HLSL *is* that way, this probably isn't what she meant, perhaps the C legacy...)
-
the entire thing is imperative, there's like not one bit of it that supports proper functional programming, which really sucks
- 6 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.