| 241 | |
| 242 | template <vkb::BindingType bindingType> |
| 243 | inline void Device<bindingType>::copy_buffer(vkb::core::Buffer<bindingType> const &src, |
| 244 | vkb::core::Buffer<bindingType> &dst, |
| 245 | QueueType queue, |
| 246 | BufferCopyType const *copy_region) |
| 247 | { |
| 248 | assert(dst.get_size() <= src.get_size()); |
| 249 | assert(src.get_handle()); |
| 250 | |
| 251 | if constexpr (bindingType == vkb::BindingType::Cpp) |
| 252 | { |
| 253 | copy_buffer_impl(this->get_handle(), src, dst, queue, copy_region); |
| 254 | } |
| 255 | else |
| 256 | { |
| 257 | copy_buffer_impl(static_cast<vk::Device>(this->get_handle()), reinterpret_cast<vkb::core::BufferCpp const &>(src), |
| 258 | reinterpret_cast<vkb::core::BufferCpp &>(dst), |
| 259 | static_cast<vk::Queue>(queue), |
| 260 | reinterpret_cast<vk::BufferCopy const *>(copy_region)); |
| 261 | } |
| 262 | } |
| 263 | |
| 264 | template <vkb::BindingType bindingType> |
| 265 | inline typename Device<bindingType>::CommandBufferType Device<bindingType>::create_command_buffer(CommandBufferLevelType level, bool begin) const |
no test coverage detected