MCPcopy Create free account
hub / github.com/davideberly/GeometricTools / glGetProgramInterfaceiv

Function glGetProgramInterfaceiv

GTE/Graphics/GL46/GL46.cpp:11533–11556  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11531}
11532
11533void APIENTRY glGetProgramInterfaceiv(GLuint program, GLenum programInterface, GLenum pname, GLint* params)
11534{
11535 if (sglGetProgramInterfaceiv)
11536 {
11537 sglGetProgramInterfaceiv(program, programInterface, pname, params);
11538 // TODO: For GL_TRANSFORM_FEEDBACK_BUFFER, this function succeeds on
11539 // my NVIDIA graphics cards. It failed on my Intel Graphics driver
11540 // on my laptop.
11541 if (programInterface != GL_TRANSFORM_FEEDBACK_BUFFER)
11542 {
11543 ReportGLError("glGetProgramInterfaceiv");
11544 }
11545 }
11546 else
11547 {
11548 ReportGLNullFunction("glGetProgramInterfaceiv");
11549 }
11550
11551#if defined(GTE_ENABLE_GLTRACE)
11552 gsTrace.Call("glGetProgramInterfaceiv", "",
11553 program, gsTrace.GetName(programInterface),
11554 gsTrace.GetName(pname), *params);
11555#endif
11556}
11557
11558GLuint APIENTRY glGetProgramResourceIndex(GLuint program, GLenum programInterface, const GLchar* name)
11559{

Calls 4

ReportGLErrorFunction · 0.85
ReportGLNullFunctionFunction · 0.85
CallMethod · 0.80
GetNameMethod · 0.80

Tested by

no test coverage detected