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

Method add_queue

framework/core/device.h:222–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220
221template <vkb::BindingType bindingType>
222inline void Device<bindingType>::add_queue(size_t global_index, uint32_t family_index, QueueFamilyPropertiesType const &properties, Bool32Type can_present)
223{
224 if (queues.size() <= global_index)
225 {
226 queues.resize(global_index + 1);
227 }
228 if constexpr (bindingType == vkb::BindingType::Cpp)
229 {
230 queues[global_index].emplace_back(*this, family_index, properties, can_present, 0);
231 }
232 else
233 {
234 queues[global_index].emplace_back(*reinterpret_cast<vkb::core::DeviceCpp *>(this),
235 family_index,
236 reinterpret_cast<vk::QueueFamilyProperties const &>(properties),
237 static_cast<vk::Bool32>(can_present),
238 0);
239 }
240}
241
242template <vkb::BindingType bindingType>
243inline void Device<bindingType>::copy_buffer(vkb::core::Buffer<bindingType> const &src,

Callers 1

create_deviceMethod · 0.80

Calls 2

sizeMethod · 0.80
resizeMethod · 0.45

Tested by

no test coverage detected