mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-24 07:26:34 +00:00
Call into the drawcall callback for copy/resolve/blit/etc.
* This means that drawcall timers are fetched for those functions.
This commit is contained in:
@@ -90,8 +90,8 @@ struct VulkanGPUTimerCallback : public VulkanDrawcallCallback
|
||||
|
||||
bool PostDraw(uint32_t eid, VkCommandBuffer cmd)
|
||||
{
|
||||
ObjDisp(cmd)->CmdWriteTimestamp(Unwrap(cmd), VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT,
|
||||
m_QueryPool, (uint32_t)(m_Results.size() * 2 + 1));
|
||||
ObjDisp(cmd)->CmdWriteTimestamp(Unwrap(cmd), VK_PIPELINE_STAGE_BOTTOM_OF_PIPE_BIT, m_QueryPool,
|
||||
(uint32_t)(m_Results.size() * 2 + 1));
|
||||
m_Results.push_back(eid);
|
||||
return false;
|
||||
}
|
||||
@@ -101,6 +101,12 @@ struct VulkanGPUTimerCallback : public VulkanDrawcallCallback
|
||||
void PreDispatch(uint32_t eid, VkCommandBuffer cmd) { PreDraw(eid, cmd); }
|
||||
bool PostDispatch(uint32_t eid, VkCommandBuffer cmd) { return PostDraw(eid, cmd); }
|
||||
void PostRedispatch(uint32_t eid, VkCommandBuffer cmd) { PostRedraw(eid, cmd); }
|
||||
void PreMisc(uint32_t eid, DrawcallFlags flags, VkCommandBuffer cmd) { PreDraw(eid, cmd); }
|
||||
bool PostMisc(uint32_t eid, DrawcallFlags flags, VkCommandBuffer cmd)
|
||||
{
|
||||
return PostDraw(eid, cmd);
|
||||
}
|
||||
void PostRemisc(uint32_t eid, DrawcallFlags flags, VkCommandBuffer cmd) { PostRedraw(eid, cmd); }
|
||||
bool RecordAllCmds() { return true; }
|
||||
void AliasEvent(uint32_t primary, uint32_t alias)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user