James Richard Tyrer wrote:
Can we do the same thing with OpenGL? Can we design a low level
language that can be directly implemented in hardware that it is
possible to compile all of OpenGL into?
Someone needs to create "GLSL bytecode". GLSL is the shader language,
comparable to Java source. But there is no OpenGL bytecode equivalent
of Java bytecode, and there should be.
Take a look at various compiler IRs (intermediate representations), used
to transmit information from the compiler front-end (C, C++, FORTRAN) to
the compiler back-end (x86, ppc, mips). IRs would be a good starting point.
Another point, that Keith Whitwell(I think?) made recently, which is
something I've been thinking about as well: modern graphics tasks are
so complex that you need not only a runtime-optimizing JIT (GLSL ->
microcode on the fly), you also need an OS-like scheduler that schedules
the various resources a GPU has, for several competing OpenGL clients:
memory [bandwidth | storage], GPU execution unit pipeline, ...
Jeff
_______________________________________________
Open-graphics mailing list
[email protected]
http://lists.duskglow.com/mailman/listinfo/open-graphics
List service provided by Duskglow Consulting, LLC (www.duskglow.com)