AnsweredAssumed Answered

glGetProgramResourceiv() not working in OpenGL 4.3 / 4.4

Question asked by dennis on Jul 31, 2014
Latest reply on Apr 30, 2015 by deberly

Dear AMD developers,

 

I have recently come across a problem with the function mentioned above.

After successfully compiling and linking my shaders I want to get the corresponding information to them.

 

Now to do this, I call glGetProgramResourceiv() with the arguments saved in the following array:

   GLenum InputValues[]   = { GL_NAME_LENGTH, GL_TYPE, GL_ARRAY_SIZE, GL_LOCATION,

GL_IS_PER_PATCH, GL_LOCATION_COMPONENT };

(All values are correctly predefined)

 

As glGetProgramResourceiv() uses a result array to print results to, I checked the output array before and after the call of the function, only to see that nothing changes.

(See https://www.opengl.org/wiki/Program_Introspection#Interface_query for further information on the process)

 

I have already tried it out on other machines and the problem only seems to occur when using AMD, the required OpenGL extension ARB_program_interface_query is still shown as supported however.

 

I am using a 64-Bit Windows with an AMD Radeon HD 7700 Series, Driver Version 14.10.1006-140417a-171098C.

 

Thanks in advance for everyone who can help me with this issue,

 

Dennis

Outcomes