| 501 | |
| 502 | template <vkb::BindingType bindingType> |
| 503 | inline void Device<bindingType>::copy_buffer_impl( |
| 504 | vk::Device device, vkb::core::BufferCpp const &src, vkb::core::BufferCpp &dst, vk::Queue queue, vk::BufferCopy const *copy_region) |
| 505 | { |
| 506 | vk::CommandBuffer command_buffer = create_command_buffer_impl(device, vk::CommandBufferLevel::ePrimary, true); |
| 507 | |
| 508 | vk::BufferCopy buffer_copy; |
| 509 | if (copy_region == nullptr) |
| 510 | { |
| 511 | buffer_copy.size = src.get_size(); |
| 512 | } |
| 513 | else |
| 514 | { |
| 515 | buffer_copy = *copy_region; |
| 516 | } |
| 517 | |
| 518 | command_buffer.copyBuffer(src.get_handle(), dst.get_handle(), buffer_copy); |
| 519 | |
| 520 | flush_command_buffer_impl(device, command_buffer, queue); |
| 521 | } |
| 522 | |
| 523 | template <vkb::BindingType bindingType> |
| 524 | inline vk::CommandBuffer Device<bindingType>::create_command_buffer_impl(vk::Device device, vk::CommandBufferLevel level, bool begin) const |
nothing calls this directly
no test coverage detected