|
|
@ -109,8 +109,6 @@ VkResult draw_frame(
|
|
|
|
frame->transfer_count = 0;
|
|
|
|
frame->transfer_count = 0;
|
|
|
|
frame->transfer_written = 0;
|
|
|
|
frame->transfer_written = 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
VkCommandBuffer compute_commands = frame->compute_commands;
|
|
|
|
VkCommandBuffer compute_commands = frame->compute_commands;
|
|
|
|
VK_RESULT(vkResetCommandBuffer(compute_commands, 0));
|
|
|
|
VK_RESULT(vkResetCommandBuffer(compute_commands, 0));
|
|
|
|
VK_RESULT(vkBeginCommandBuffer(compute_commands, &begin_info));
|
|
|
|
VK_RESULT(vkBeginCommandBuffer(compute_commands, &begin_info));
|
|
|
@ -144,6 +142,7 @@ VkResult draw_frame(
|
|
|
|
.pNext = &compute_timeline,
|
|
|
|
.pNext = &compute_timeline,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
VK_RESULT(vkQueueSubmit(context->transfer_queue.handle, 1, &compute_submit, VK_NULL_HANDLE));
|
|
|
|
VK_RESULT(vkQueueSubmit(context->transfer_queue.handle, 1, &compute_submit, VK_NULL_HANDLE));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
uint32_t image_index;
|
|
|
|
uint32_t image_index;
|
|
|
|
VK_RESULT(vkAcquireNextImageKHR(context->device, context->swapchain, UINT64_MAX, frame->image, VK_NULL_HANDLE, &image_index));
|
|
|
|
VK_RESULT(vkAcquireNextImageKHR(context->device, context->swapchain, UINT64_MAX, frame->image, VK_NULL_HANDLE, &image_index));
|
|
|
|