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

Method copy_buffer

framework/core/device.h:243–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241
242template <vkb::BindingType bindingType>
243inline 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
264template <vkb::BindingType bindingType>
265inline typename Device<bindingType>::CommandBufferType Device<bindingType>::create_command_buffer(CommandBufferLevelType level, bool begin) const

Callers 12

load_modelMethod · 0.45
on_update_ui_overlayMethod · 0.45
initialize_resourcesMethod · 0.45
cpu_cullMethod · 0.45
prepareMethod · 0.45
prepare_instance_dataMethod · 0.45
create_index_bufferMethod · 0.45
load_assetsMethod · 0.45

Calls 2

get_sizeMethod · 0.45
get_handleMethod · 0.45

Tested by

no test coverage detected