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

Function glGetProgramResourceIndex

GTE/Graphics/GL46/GL46.cpp:11558–11577  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11556}
11557
11558GLuint APIENTRY glGetProgramResourceIndex(GLuint program, GLenum programInterface, const GLchar* name)
11559{
11560 GLuint result;
11561 if (sglGetProgramResourceIndex)
11562 {
11563 result = sglGetProgramResourceIndex(program, programInterface, name);
11564 ReportGLError("glGetProgramResourceIndex");
11565 }
11566 else
11567 {
11568 ReportGLNullFunction("glGetProgramResourceIndex");
11569 result = 0;
11570 }
11571
11572#if defined(GTE_ENABLE_GLTRACE)
11573 gsTrace.Call("glGetProgramResourceIndex", std::to_string(result),
11574 program, gsTrace.GetName(programInterface), name);
11575#endif
11576 return result;
11577}
11578
11579void APIENTRY glGetProgramResourceName(GLuint program, GLenum programInterface, GLuint index, GLsizei bufSize, GLsizei* length, GLchar* name)
11580{

Callers 1

ReflectDataBlocksMethod · 0.85

Calls 4

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

Tested by

no test coverage detected