Renderer/CommandBuffer: Add support for InsertDebugLabel

This commit is contained in:
SirLynix
2023-09-06 13:24:31 +02:00
parent 07d3ccd75d
commit 5f8b7b361e
10 changed files with 51 additions and 1 deletions

View File

@@ -188,6 +188,15 @@ namespace Nz
m_commands.emplace_back(EndDebugRegionCommand{});
}
inline void OpenGLCommandBuffer::InsertDebugLabel(std::string_view label, const Color& color)
{
InsertDebugLabelCommand debugLabelCommand;
debugLabelCommand.color = color;
debugLabelCommand.label = label;
m_commands.emplace_back(std::move(debugLabelCommand));
}
inline std::size_t OpenGLCommandBuffer::GetBindingIndex() const
{
return m_bindingIndex;