summaryrefslogtreecommitdiff
path: root/indra/llrender/llvertexbuffer.h
diff options
context:
space:
mode:
authorJonathan Goodman <geenz@lindenlab.com>2022-10-10 15:19:58 +0000
committerJonathan Goodman <geenz@lindenlab.com>2022-10-10 15:19:58 +0000
commit5c65f58cb8c6a0065c2aaa7c4e7286124203f241 (patch)
treeed8934f91cbbcd1591bf79bd46eef9b0b847500b /indra/llrender/llvertexbuffer.h
parentace892b8f5b12f4c85aec70caa032a13f8d0fd2c (diff)
parent7ff19ec98c25c6ad17b979078e77ec2cab9f7ebd (diff)
Merged in SL-18290 (pull request #1151)
SL-18290 Approved-by: Dave Parks
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..d6f681e4ca 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(const char* 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