Anyone knows if there's an equivalent to D3DReflet for Opengl ?
D3dReflect allows to Query the shader needs after compilation.
Jump to content
OpenGL API Specifications
Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.
Posted 19 November 2013 - 04:14 AM
OpenGL is built around the concept of program reflection. There are a bunch of functions, some of them are:
glGetProgram() allows you to query a program for its properties, such as number of uniforms, attributes and GS and TF properties.
Note that reflection is not done on shaders, but on linked programs.
Edited by N.I.B., 19 November 2013 - 04:17 AM.
GameDev.net™, the GameDev.net logo, and GDNet™ are trademarks of GameDev.net, LLC.