| 720 | reinterpret_cast<std::vector<vk::ImageCopy> const &>(regions)); |
| 721 | } |
| 722 | } |
| 723 | |
| 724 | template <vkb::BindingType bindingType> |
| 725 | inline void CommandBuffer<bindingType>::copy_image_to_buffer(ImageType const &image, |
| 726 | ImageLayoutType image_layout, |
| 727 | vkb::core::Buffer<bindingType> const &buffer, |
| 728 | std::vector<BufferImageCopyType> const ®ions) |
| 729 | { |
| 730 | if constexpr (bindingType == vkb::BindingType::Cpp) |
| 731 | { |
| 732 | this->get_resource().copyImageToBuffer(image.get_handle(), image_layout, buffer.get_handle(), regions); |
| 733 | } |
| 734 | else |
| 735 | { |
| 736 | this->get_resource().copyImageToBuffer(image.get_resource(), |
| 737 | static_cast<vk::ImageLayout>(image_layout), |
| 738 | buffer.get_resource(), |
| 739 | reinterpret_cast<std::vector<vk::BufferImageCopy> const &>(regions)); |
no test coverage detected