Add callback hooks for dispatches, allows timing dispatch calls

This commit is contained in:
baldurk
2016-04-24 20:01:48 +02:00
parent 91b05e41e3
commit fc4537857a
6 changed files with 49 additions and 8 deletions
+5
View File
@@ -97,6 +97,11 @@ struct GPUTimerCallback : public DrawcallCallback
void PostRedraw(uint32_t eid, VkCommandBuffer cmd)
{
}
// we don't need to distinguish, call the Draw functions
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); }
bool RecordAllCmds()
{