| 737 | static_cast<vk::ImageLayout>(image_layout), |
| 738 | buffer.get_resource(), |
| 739 | reinterpret_cast<std::vector<vk::BufferImageCopy> const &>(regions)); |
| 740 | } |
| 741 | } |
| 742 | |
| 743 | template <vkb::BindingType bindingType> |
| 744 | inline void CommandBuffer<bindingType>::dispatch(uint32_t group_count_x, uint32_t group_count_y, uint32_t group_count_z) |
| 745 | { |
| 746 | flush(vk::PipelineBindPoint::eCompute); |
| 747 | this->get_resource().dispatch(group_count_x, group_count_y, group_count_z); |
| 748 | } |
| 749 | |
| 750 | template <vkb::BindingType bindingType> |
| 751 | inline void CommandBuffer<bindingType>::dispatch_indirect(vkb::core::Buffer<bindingType> const &buffer, DeviceSizeType offset) |
| 752 | { |
| 753 | flush(vk::PipelineBindPoint::eCompute); |
| 754 | if constexpr (bindingType == vkb::BindingType::Cpp) |
| 755 | { |
| 756 | this->get_resource().dispatchIndirect(buffer.get_handle(), offset); |
| 757 | } |
| 758 | else |
no test coverage detected