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

Function glGetProgramResourceiv

GTE/Graphics/GL46/GL46.cpp:11598–11616  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11596}
11597
11598void APIENTRY glGetProgramResourceiv(GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum* props, GLsizei bufSize, GLsizei* length, GLint* params)
11599{
11600 if (sglGetProgramResourceiv)
11601 {
11602 sglGetProgramResourceiv(program, programInterface, index, propCount, props, bufSize, length, params);
11603 ReportGLError("glGetProgramResourceiv");
11604 }
11605 else
11606 {
11607 ReportGLNullFunction("glGetProgramResourceiv");
11608 }
11609
11610#if defined(GTE_ENABLE_GLTRACE)
11611 gsTrace.Call("glGetProgramResourceiv", "",
11612 program, gsTrace.GetName(programInterface), index, propCount,
11613 propCount, gsTrace.GetEnumArray(propCount, props), bufSize,
11614 (length != nullptr ? *length : 0), gsTrace.GetArray(propCount, params));
11615#endif
11616}
11617
11618GLint APIENTRY glGetProgramResourceLocation(GLuint program, GLenum programInterface, const GLchar* name)
11619{

Calls 6

ReportGLErrorFunction · 0.85
ReportGLNullFunctionFunction · 0.85
CallMethod · 0.80
GetNameMethod · 0.80
GetEnumArrayMethod · 0.80
GetArrayMethod · 0.80

Tested by

no test coverage detected