MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / End

Method End

Source/Engine/GraphicsDevice/Vulkan/CmdBufferVulkan.cpp:47–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47void CmdBufferVulkan::End()
48{
49 PROFILE_CPU();
50 ASSERT(IsOutsideRenderPass());
51
52#if GPU_ALLOW_PROFILE_EVENTS
53 // End remaining events
54 while (_eventsBegin--)
55 {
56#if VK_EXT_debug_utils
57 if (vkCmdEndDebugUtilsLabelEXT)
58 vkCmdEndDebugUtilsLabelEXT(GetHandle());
59#endif
60#if GPU_ENABLE_TRACY
61 tracy::EndVkZoneScope(_tracyZones.Last().Data);
62 _tracyZones.RemoveLast();
63#endif
64 }
65#endif
66
67 VALIDATE_VULKAN_RESULT(vkEndCommandBuffer(GetHandle()));
68 _state = State::HasEnded;
69}
70
71void CmdBufferVulkan::BeginRenderPass(RenderPassVulkan* renderPass, FramebufferVulkan* framebuffer, uint32 clearValueCount, VkClearValue* clearValues)
72{

Callers 1

SubmitActiveCmdBufferMethod · 0.45

Calls 4

EndVkZoneScopeFunction · 0.85
RemoveLastMethod · 0.80
GetHandleFunction · 0.50
LastMethod · 0.45

Tested by

no test coverage detected