|
|
|
@ -227,7 +227,16 @@ void Scheduler::WorkerThread(std::stop_token stop_token) { |
|
|
|
// Perform the work, tracking whether the chunk was a submission
|
|
|
|
// before executing.
|
|
|
|
const bool has_submit = work->HasSubmit(); |
|
|
|
work->ExecuteAll(current_cmdbuf, current_upload_cmdbuf); |
|
|
|
try { |
|
|
|
work->ExecuteAll(current_cmdbuf, current_upload_cmdbuf); |
|
|
|
} catch (const vk::Exception& e) { |
|
|
|
LOG_CRITICAL(Render_Vulkan, "VulkanWorker: vk::Exception in ExecuteAll: result={}", |
|
|
|
static_cast<int>(e.GetResult())); |
|
|
|
throw; |
|
|
|
} catch (const std::exception& e) { |
|
|
|
LOG_CRITICAL(Render_Vulkan, "VulkanWorker: exception in ExecuteAll: {}", e.what()); |
|
|
|
throw; |
|
|
|
} |
|
|
|
|
|
|
|
// If the chunk was a submission, reallocate the command buffer.
|
|
|
|
if (has_submit) { |
|
|
|
|