| 1362 | } |
| 1363 | |
| 1364 | void ApiVulkanSample::with_vkb_command_buffer(const std::function<void(vkb::core::CommandBufferC &command_buffer)> &f) |
| 1365 | { |
| 1366 | auto cmd = get_device().get_command_pool().request_command_buffer(); |
| 1367 | cmd->begin(VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT, VK_NULL_HANDLE); |
| 1368 | f(*cmd); |
| 1369 | cmd->end(); |
| 1370 | auto &queue = get_device().get_queue_by_flags(VK_QUEUE_GRAPHICS_BIT, 0); |
| 1371 | queue.submit(*cmd, get_device().get_fence_pool().request_fence()); |
| 1372 | get_device().get_fence_pool().wait(); |
| 1373 | } |
nothing calls this directly
no test coverage detected