| 220 | |
| 221 | template <vkb::BindingType bindingType> |
| 222 | inline 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 | |
| 242 | template <vkb::BindingType bindingType> |
| 243 | inline void Device<bindingType>::copy_buffer(vkb::core::Buffer<bindingType> const &src, |
no test coverage detected