guys, what the heck would be wrong with some kind of IL like .net’s. decouple the high-level syntax and expose a language that targets the hardware functionality only. any syntax could compile to this IL target and be jit’d on demand. with all hardware providing essentially the same functionality, it doesn’t make sense to me to have such dependencies on a language syntax, especially when there seems to be so much disagreement on how that syntax should play out. with an IL, any high level language could be used, as long as some tool can compile it to the IL. glsl could exist as is, but so could hlsl, and hlsl could be used as easily in opengl as it is in d3d, and vice versa.
this IL could be developed cooperatively amongst the ihv’s, and competition could be based on the performance of their implementations, as it should be. having just written that, i see the problem of how to agree on an IL that implements favorably for a given ihv. this could be a point of contention and a basis for delay in specification and implementation, but it’s not like we haven’t seen delays already, and a good design of this thing should be independent of any explicit implementation details.
well, i’ve blabbed enough. i was just kicking this around and thought it might be fun to discuss. given that this has probably come up before in one form or another, my apologies in advance.
any and all comments are welcome.
(except those from “raystonn” and his/her associates.)
seasonal salutations,
bonehead