mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-18 04:53:06 +01:00
Don't call vkCmdEndDebugUtilsLabelEXT when unsupported (#2211)
Validation will swamp your logs with a warning on every call
This commit is contained in:
@@ -262,10 +262,13 @@
|
||||
BGFX_PROFILER_BEGIN_LITERAL("" _name, _abgr); \
|
||||
BX_MACRO_BLOCK_END
|
||||
|
||||
#define BGFX_VK_PROFILER_END() \
|
||||
BX_MACRO_BLOCK_BEGIN \
|
||||
BGFX_PROFILER_END(); \
|
||||
vkCmdEndDebugUtilsLabelEXT(m_commandBuffer); \
|
||||
#define BGFX_VK_PROFILER_END() \
|
||||
BX_MACRO_BLOCK_BEGIN \
|
||||
BGFX_PROFILER_END(); \
|
||||
if (s_extension[Extension::EXT_debug_utils].m_supported ) \
|
||||
{ \
|
||||
vkCmdEndDebugUtilsLabelEXT(m_commandBuffer); \
|
||||
} \
|
||||
BX_MACRO_BLOCK_END
|
||||
|
||||
namespace bgfx { namespace vk
|
||||
|
||||
Reference in New Issue
Block a user