mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-22 21:55:52 +00:00
Add some more marker regions for self-hosted captures
This commit is contained in:
@@ -994,6 +994,8 @@ void VulkanReplay::ClearOutputWindowColor(uint64_t id, FloatVector col)
|
||||
VkCommandBuffer cmd = m_pDriver->GetNextCmd();
|
||||
const VkDevDispatchTable *vt = ObjDisp(dev);
|
||||
|
||||
VkMarkerRegion::Begin("ClearOutputWindowColor", cmd);
|
||||
|
||||
VkCommandBufferBeginInfo beginInfo = {VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO, NULL,
|
||||
VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT};
|
||||
|
||||
@@ -1020,6 +1022,8 @@ void VulkanReplay::ClearOutputWindowColor(uint64_t id, FloatVector col)
|
||||
outw.bbBarrier.srcAccessMask = outw.bbBarrier.dstAccessMask;
|
||||
outw.bbBarrier.oldLayout = outw.bbBarrier.newLayout;
|
||||
|
||||
VkMarkerRegion::End(cmd);
|
||||
|
||||
vt->EndCommandBuffer(Unwrap(cmd));
|
||||
|
||||
#if ENABLED(SINGLE_FLUSH_VALIDATE)
|
||||
@@ -1097,6 +1101,8 @@ void VulkanReplay::FlipOutputWindow(uint64_t id)
|
||||
VkCommandBuffer cmd = m_pDriver->GetNextCmd();
|
||||
const VkDevDispatchTable *vt = ObjDisp(dev);
|
||||
|
||||
VkMarkerRegion::Begin("FlipOutputWindow", cmd);
|
||||
|
||||
VkCommandBufferBeginInfo beginInfo = {VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO, NULL,
|
||||
VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT};
|
||||
|
||||
@@ -1184,6 +1190,8 @@ void VulkanReplay::FlipOutputWindow(uint64_t id)
|
||||
outw.colBarrier[outw.curidx].srcAccessMask = 0;
|
||||
outw.colBarrier[outw.curidx].dstAccessMask = 0;
|
||||
|
||||
VkMarkerRegion::End(cmd);
|
||||
|
||||
vt->EndCommandBuffer(Unwrap(cmd));
|
||||
|
||||
// submit all the cmds we recorded
|
||||
|
||||
@@ -484,6 +484,8 @@ bool VulkanReplay::RenderTextureInternal(TextureDisplay cfg, const ImageState &i
|
||||
|
||||
VkCommandBuffer cmd = m_pDriver->GetNextCmd();
|
||||
|
||||
VkMarkerRegion::Begin("RenderTexture", cmd);
|
||||
|
||||
VkCommandBufferBeginInfo beginInfo = {VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO, NULL,
|
||||
VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT};
|
||||
|
||||
@@ -565,6 +567,7 @@ bool VulkanReplay::RenderTextureInternal(TextureDisplay cfg, const ImageState &i
|
||||
}
|
||||
|
||||
m_pDriver->InlineCleanupImageBarriers(cmd, cleanupBarriers);
|
||||
VkMarkerRegion::End(cmd);
|
||||
vt->EndCommandBuffer(Unwrap(cmd));
|
||||
if(!cleanupBarriers.empty())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user