-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Philipp Klaus Krause wrote: > GL_ARB_*_program doesn't know about functions. It can easily be > implemented on a graphics chip whose shader processors don't know about > function calling, indirect addressing, stack, etc: Just a lot of > registers, directly addressed would do. > What about GLSL? Now there's a C-like language, functions (though > recursion isn't allowed). Is a stack, indirect addressing, etc needed?
For most programs, no. If the compiler aggressively inlines functions, most programs won't need function calls. Since GLSL also doesn't support C-style pointers, I think you can also get away without most indirect addressing. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFGaX5cX1gOwKyEAw8RAnM9AJ90n+oRzZhceEcqQTqZ1ZkGYfBGrQCdER9v OYpseME33D2m77YJVlTUXcQ= =b+BW -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Mesa3d-dev mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mesa3d-dev
