MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Samples / copy_image_to_buffer

Method copy_image_to_buffer

framework/core/command_buffer.h:739–755  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

737 static_cast<vk::ImageLayout>(image_layout),
738 buffer.get_resource(),
739 reinterpret_cast<std::vector<vk::BufferImageCopy> const &>(regions));
740 }
741}
742
743template <vkb::BindingType bindingType>
744inline 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
750template <vkb::BindingType bindingType>
751inline 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

Callers 1

screenshotFunction · 0.80

Calls 1

get_handleMethod · 0.45

Tested by

no test coverage detected