Jump to content

  • Log In with Google      Sign In   
  • Create Account

#ActualN.I.B.

Posted 19 November 2013 - 04:17 AM

OpenGL is built around the concept of program reflection. There are a bunch of functions, some of them are:

glGetUniformLocation(), glGetUniformBlockIndex(), glGetFragDataLocation(), glGetFragDataIndex(), glGetAttribLocation(), glGetProgramResourceIndex(), glGetProgramResourceLocation(), glGetUniform().

 

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.


#2N.I.B.

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:

glGetUniformLocation(), glGetUniformBlockIndex(), glGetFragDataLocation(), glGetFragDataIndex(), glGetAttribLocation(), glGetProgramResourceIndex(), glGetProgramResourceLocation().

 

Note that reflection is not done on shaders, but on linked programs.


#1N.I.B.

Posted 19 November 2013 - 04:14 AM

OpenGL is built around the concept of program reflection. There are a bunch of function, some of them are:

glGetUniformLocation(), glGetUniformBlockIndex(), glGetFragDataLocation(), glGetFragDataIndex(), glGetAttribLocation(), glGetProgramResourceIndex(), glGetProgramResourceLocation().

 

Note that reflection is not done on shaders, but on linked programs.


PARTNERS