MCPcopy Create free account
hub / github.com/ZDoom/Raze / PushGroup

Method PushGroup

source/common/rendering/gl/gl_debug.cpp:115–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113//-----------------------------------------------------------------------------
114
115void FGLDebug::PushGroup(const FString &name)
116{
117 if (HasDebugApi() && gl_debug_level != 0)
118 {
119 glPushDebugGroup(GL_DEBUG_SOURCE_APPLICATION, 0, (GLsizei)name.Len(), name.GetChars());
120 }
121
122 if (gpuStatActive)
123 {
124 GLuint queryHandle = 0;
125 glGenQueries(1, &queryHandle);
126 glBeginQuery(GL_TIME_ELAPSED, queryHandle);
127 timeElapsedQueries.push_back({ name, queryHandle });
128 }
129}
130
131void FGLDebug::PopGroup()
132{

Callers 5

RenderBloomMethod · 0.45
RenderBlurMethod · 0.45
RenderMethod · 0.45
UpdateMethod · 0.45
RunMethod · 0.45

Calls 3

LenMethod · 0.80
GetCharsMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected