24 #ifndef PXR_IMAGING_GLF_DIAGNOSTIC_H
25 #define PXR_IMAGING_GLF_DIAGNOSTIC_H
43 #define GLF_POST_PENDING_GL_ERRORS() \
44 GlfPostPendingGLErrors(__ARCH_PRETTY_FUNCTION__)
68 #define GLF_GROUP_FUNCTION() \
69 GlfDebugGroup __glf_group_function(__ARCH_PRETTY_FUNCTION__)
72 #define GLF_GROUP_SCOPE(str) \
73 GlfDebugGroup __glf_group_scope(str)
96 GlfDebugGroup&
operator =(GlfDebugGroup
const&) =
delete;
164 GlfGLQueryObject&
operator =(GlfGLQueryObject
const&) =
delete;
GLuint GLsizei const GLchar * message
GLuint GLsizei const GLchar * label
GLF_API void GlfDefaultDebugOutputMessageCallback(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, char const *message, GLvoid const *userParam)
GLF_API void BeginTimeElapsed()
GLF_API ~GlfGLQueryObject()
GLsizei const GLchar *const * string
GLF_API void BeginSamplesPassed()
GLuint GLsizei GLsizei * length
GLF_API int64_t GetResultNoWait()
GLF_API int64_t GetResult()
GLF_API GlfGLQueryObject()
GLF_API void End()
End query.
GLF_API void BeginPrimitivesGenerated()
GLF_API ~GlfDebugGroup()
Pops a debug group off the GL api debug trace stack.
GLsizei GLsizei GLchar * source
GlfGLQueryObject & operator=(GlfGLQueryObject const &)=delete
GLF_API void GlfPostPendingGLErrors(std::string const &where=std::string())
Posts diagnostic errors for all GL errors in the current context.
GLF_API void Begin(GLenum target)
GLF_API void GlfRegisterDefaultDebugOutputMessageCallback()
GLF_API void GlfDebugLabelBuffer(GLuint id, char const *label)
Label a buffer object to improve tracing in the debug output.
GLF_API char const * GlfDebugEnumToString(GLenum debugEnum)
Returns a string representation of debug output enum values.
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
GLF_API void GlfDebugLabelShader(GLuint id, char const *label)
Label a shader object to improve tracing in the debug output.
GlfDebugGroup & operator=(GlfDebugGroup const &)=delete
#define PXR_NAMESPACE_CLOSE_SCOPE
GLF_API void GlfDebugLabelProgram(GLuint id, char const *label)
Label a program object to improve tracing in the debug output.