|
|
@ -83,7 +83,7 @@ VkResult draw_frame(
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
VK_RESULT(vkEndCommandBuffer(transfer_commands));
|
|
|
|
VK_RESULT(vkEndCommandBuffer(transfer_commands));
|
|
|
|
VkPipelineStageFlags wait_stages[] = {VK_PIPELINE_STAGE_ALL_COMMANDS_BIT};
|
|
|
|
VkPipelineStageFlags wait_stages[] = {VK_PIPELINE_STAGE_TRANSFER_BIT};
|
|
|
|
VkSemaphore transfer_signals[] = {context->frame[context->current_frame].transfer};
|
|
|
|
VkSemaphore transfer_signals[] = {context->frame[context->current_frame].transfer};
|
|
|
|
VkSemaphore transfer_waits[] = {context->frame[context->current_frame].frame};
|
|
|
|
VkSemaphore transfer_waits[] = {context->frame[context->current_frame].frame};
|
|
|
|
uint64_t transfer_wait_values[] = {context->frame[context->current_frame].frame_index};
|
|
|
|
uint64_t transfer_wait_values[] = {context->frame[context->current_frame].frame_index};
|
|
|
@ -113,7 +113,7 @@ VkResult draw_frame(
|
|
|
|
VK_RESULT(vkBeginCommandBuffer(compute_commands, &begin_info));
|
|
|
|
VK_RESULT(vkBeginCommandBuffer(compute_commands, &begin_info));
|
|
|
|
record_ui_compute(compute_commands, ui, context->current_frame);
|
|
|
|
record_ui_compute(compute_commands, ui, context->current_frame);
|
|
|
|
VK_RESULT(vkEndCommandBuffer(compute_commands));
|
|
|
|
VK_RESULT(vkEndCommandBuffer(compute_commands));
|
|
|
|
VkPipelineStageFlags compute_wait_stages[] = {VK_PIPELINE_STAGE_ALL_COMMANDS_BIT};
|
|
|
|
VkPipelineStageFlags compute_wait_stages[] = {VK_PIPELINE_STAGE_TRANSFER_BIT | VK_PIPELINE_STAGE_DRAW_INDIRECT_BIT};
|
|
|
|
context->frame[context->current_frame].compute_index += 1;
|
|
|
|
context->frame[context->current_frame].compute_index += 1;
|
|
|
|
VkSemaphore compute_signals[] = {context->frame[context->current_frame].compute};
|
|
|
|
VkSemaphore compute_signals[] = {context->frame[context->current_frame].compute};
|
|
|
|
uint64_t compute_signal_values[] = {context->frame[context->current_frame].compute_index};
|
|
|
|
uint64_t compute_signal_values[] = {context->frame[context->current_frame].compute_index};
|
|
|
|