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

Method request_command_buffer

framework/core/command_pool.h:162–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160
161template <vkb::BindingType bindingType>
162std::shared_ptr<vkb::core::CommandBuffer<bindingType>> CommandPool<bindingType>::request_command_buffer(CommandBufferLevelType level)
163{
164 if constexpr (bindingType == vkb::BindingType::Cpp)
165 {
166 return CommandPoolBase::request_command_buffer(*this, level);
167 }
168 else
169 {
170 std::shared_ptr<vkb::core::CommandBufferCpp> command_buffer =
171 CommandPoolBase::request_command_buffer(reinterpret_cast<vkb::core::CommandPoolCpp &>(*this), static_cast<vk::CommandBufferLevel>(level));
172 return *reinterpret_cast<std::shared_ptr<CommandBufferC> *>(&command_buffer);
173 }
174}
175
176template <vkb::BindingType bindingType>
177inline void CommandPool<bindingType>::reset_pool()

Callers 15

load_sceneMethod · 0.45
load_modelMethod · 0.45
GuiMethod · 0.45
screenshotFunction · 0.45
beginMethod · 0.45
render_shadow_passMethod · 0.45
render_swapchainMethod · 0.45
render_compute_postMethod · 0.45
draw_renderpassMethod · 0.45
record_draw_secondaryMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected