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

Method with_command_buffer

framework/hpp_api_vulkan_sample.cpp:1116–1121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1114}
1115
1116void HPPApiVulkanSample::with_command_buffer(const std::function<void(vk::CommandBuffer command_buffer)> &f, vk::Semaphore signalSemaphore)
1117{
1118 vk::CommandBuffer command_buffer = get_device().create_command_buffer(vk::CommandBufferLevel::ePrimary, true);
1119 f(command_buffer);
1120 get_device().flush_command_buffer(command_buffer, queue, true, signalSemaphore);
1121}

Callers

nothing calls this directly

Calls 2

create_command_bufferMethod · 0.80
flush_command_bufferMethod · 0.80

Tested by

no test coverage detected