diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-09-14 18:29:28 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-09-14 18:30:25 +0300 |
commit | ac63afca7d4564d21577e5a97b692cee71897089 (patch) | |
tree | 40d6b595934040ac26f6cbb2670cd09d8aec0198 /source/blender/gpu/opengl/gl_context.hh | |
parent | a040e8df3669d6e1e6fe4a973cd78366c2cf70a9 (diff) |
GL: Make use of the new debug layer
This makes replay analysis inside renderdoc much easier by using the new
debug group functionality.
Diffstat (limited to 'source/blender/gpu/opengl/gl_context.hh')
-rw-r--r-- | source/blender/gpu/opengl/gl_context.hh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/gpu/opengl/gl_context.hh b/source/blender/gpu/opengl/gl_context.hh index 4d9c2470db0..5cebc2a3f3e 100644 --- a/source/blender/gpu/opengl/gl_context.hh +++ b/source/blender/gpu/opengl/gl_context.hh @@ -135,6 +135,9 @@ class GLContext : public Context { void vao_cache_register(GLVaoCache *cache); void vao_cache_unregister(GLVaoCache *cache); + void debug_group_begin(const char *name, int index); + void debug_group_end(void); + private: static void orphans_add(Vector<GLuint> &orphan_list, std::mutex &list_mutex, GLuint id); void orphans_clear(void); |