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

Method create_internal_command_pool

framework/core/device.h:313–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311
312template <vkb::BindingType bindingType>
313inline void Device<bindingType>::create_internal_command_pool()
314{
315 uint32_t familyIndex = get_queue_by_flags_impl(vk::QueueFlagBits::eGraphics | vk::QueueFlagBits::eCompute, 0).get_family_index();
316 if constexpr (bindingType == vkb::BindingType::Cpp)
317 {
318 command_pool = std::make_unique<vkb::core::CommandPoolCpp>(*this, familyIndex);
319 }
320 else
321 {
322 command_pool = std::make_unique<vkb::core::CommandPoolCpp>(*reinterpret_cast<vkb::core::DeviceCpp *>(this), familyIndex);
323 }
324}
325
326template <vkb::BindingType bindingType>
327inline void Device<bindingType>::create_internal_fence_pool()

Callers 1

create_deviceMethod · 0.80

Calls 1

get_family_indexMethod · 0.45

Tested by

no test coverage detected