MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Samples / with_command_buffer

Method with_command_buffer

framework/api_vulkan_sample.cpp:1357–1362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1355}
1356
1357void ApiVulkanSample::with_command_buffer(const std::function<void(VkCommandBuffer command_buffer)> &f, VkSemaphore signalSemaphore)
1358{
1359 VkCommandBuffer command_buffer = get_device().create_command_buffer(VK_COMMAND_BUFFER_LEVEL_PRIMARY, true);
1360 f(command_buffer);
1361 get_device().flush_command_buffer(command_buffer, queue, true, signalSemaphore);
1362}
1363
1364void ApiVulkanSample::with_vkb_command_buffer(const std::function<void(vkb::core::CommandBufferC &command_buffer)> &f)
1365{

Callers

nothing calls this directly

Calls 2

create_command_bufferMethod · 0.80
flush_command_bufferMethod · 0.80

Tested by

no test coverage detected