| 95 | #if GPU_ALLOW_PROFILE_EVENTS |
| 96 | |
| 97 | void CmdBufferVulkan::BeginEvent(const Char* name, void* tracyContext) |
| 98 | { |
| 99 | _eventsBegin++; |
| 100 | |
| 101 | char buffer[60]; |
| 102 | int32 bufferSize = StringUtils::Copy(buffer, name, sizeof(buffer)); |
| 103 | |
| 104 | #if GPU_ENABLE_TRACY |
| 105 | auto& zone = _tracyZones.AddOne(); |
| 106 | tracy::BeginVkZoneScope(zone.Data, tracyContext, GetHandle(), buffer, bufferSize); |
| 107 | #endif |
| 108 | |
| 109 | #if VK_EXT_debug_utils |
| 110 | if (vkCmdBeginDebugUtilsLabelEXT) |
| 111 | { |
| 112 | VkDebugUtilsLabelEXT label; |
| 113 | RenderToolsVulkan::ZeroStruct(label, VK_STRUCTURE_TYPE_DEBUG_UTILS_LABEL_EXT); |
| 114 | label.pLabelName = buffer; |
| 115 | vkCmdBeginDebugUtilsLabelEXT(GetHandle(), &label); |
| 116 | } |
| 117 | #endif |
| 118 | } |
| 119 | |
| 120 | void CmdBufferVulkan::EndEvent() |
| 121 | { |
no test coverage detected