mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-16 17:19:20 +00:00
VK_Parameter_Zoo: add empty vkQueueSubmit before colour draws
This commit is contained in:
1 parent
c980ca661e
commit
48bb4350bd
1 file changed
+21
-1
@@ -1877,6 +1877,25 @@ void main()
|
||||
vkUpdateDescriptorSetWithTemplateKHR(device, reftempldescset, reftempl, &resetrefdata);
|
||||
}
|
||||
|
||||
// make some empty submits
|
||||
setMarker(queue, "before_empty");
|
||||
|
||||
{
|
||||
std::vector<VkCommandBuffer> cmds = {};
|
||||
VkSubmitInfo submit[2] = {vkh::SubmitInfo(cmds), vkh::SubmitInfo(cmds)};
|
||||
CHECK_VKR(vkQueueSubmit(queue, 2, submit, VK_NULL_HANDLE));
|
||||
|
||||
CHECK_VKR(vkQueueSubmit(queue, 0, (const VkSubmitInfo *)0x1234, VK_NULL_HANDLE));
|
||||
}
|
||||
if(hasExt(VK_KHR_SYNCHRONIZATION_2_EXTENSION_NAME))
|
||||
{
|
||||
VkSubmitInfo2KHR submit = {VK_STRUCTURE_TYPE_SUBMIT_INFO_2_KHR};
|
||||
CHECK_VKR(vkQueueSubmit2KHR(queue, 1, &submit, VK_NULL_HANDLE));
|
||||
|
||||
CHECK_VKR(vkQueueSubmit2KHR(queue, 0, (const VkSubmitInfo2 *)0x4567, VK_NULL_HANDLE));
|
||||
}
|
||||
setMarker(queue, "after_empty");
|
||||
|
||||
// check the rendering with our parameter tests is OK
|
||||
{
|
||||
vkDeviceWaitIdle(device);
|
||||
@@ -2038,6 +2057,8 @@ void main()
|
||||
Submit(2, 4, {cmd});
|
||||
}
|
||||
|
||||
// make some empty submits
|
||||
|
||||
// finish with the backbuffer
|
||||
{
|
||||
vkDeviceWaitIdle(device);
|
||||
@@ -2054,7 +2075,6 @@ void main()
|
||||
}
|
||||
|
||||
// make some empty submits
|
||||
|
||||
setMarker(queue, "before_empty");
|
||||
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user