summaryrefslogtreecommitdiff
path: root/indra/llrender/llvertexbuffer.h
diff options
context:
space:
mode:
authorGeenz <geenz@lindenlab.com>2022-10-05 09:48:18 -0700
committerGeenz <geenz@lindenlab.com>2022-10-05 09:48:18 -0700
commitbe1cdc1aaa67eca71fee8cbbc16b4c85bcbdb258 (patch)
tree42bf8c3d8ff049c55b7609a934ef35fc3aac8616 /indra/llrender/llvertexbuffer.h
parent1a437cbedf94de90d749f426dde09f2466693de2 (diff)
Initial pass at adding KHR_debug support
This still needs some work - I'm not super satisfied with the overall structure of the code. Will continue to iterate as I add in proper RenderDoc support.
Diffstat (limited to 'indra/llrender/llvertexbuffer.h')
-rw-r--r--indra/llrender/llvertexbuffer.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/llrender/llvertexbuffer.h b/indra/llrender/llvertexbuffer.h
index a7907f9cae..a7e5fddf8c 100644
--- a/indra/llrender/llvertexbuffer.h
+++ b/indra/llrender/llvertexbuffer.h
@@ -300,6 +300,9 @@ public:
//for debugging, validate data in given range is valid
void validateRange(U32 start, U32 end, U32 count, U32 offset) const;
+ #ifdef LL_PROFILER_ENABLE_TRACY_OPENGL
+ void setLabel(std::string label);
+ #endif
protected:
@@ -370,5 +373,11 @@ public:
static U32 sSetCount;
};
+#ifdef LL_PROFILER_ENABLE_TRACY_OPENGL
+#define LL_LABEL_VERTEX_BUFFER(buf, name) buf->setLabel(name)
+#else
+#define LL_LABEL_VERTEX_BUFFER(buf, name)
+#endif
+
#endif // LL_LLVERTEXBUFFER_H