MCPcopy Create free account
hub / github.com/NVIDIA/cuda-samples / copyBuffer

Method copyBuffer

cpp/5_Domain_Specific/simpleVulkan/VulkanBaseApp.cpp:1629–1638  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1627}
1628
1629void VulkanBaseApp::copyBuffer(VkBuffer dst, VkBuffer src, VkDeviceSize size)
1630{
1631 VkCommandBuffer commandBuffer = beginSingleTimeCommands();
1632
1633 VkBufferCopy copyRegion = {};
1634 copyRegion.size = size;
1635 vkCmdCopyBuffer(commandBuffer, src, dst, 1, &copyRegion);
1636
1637 endSingleTimeCommands(commandBuffer);
1638}
1639#ifdef _VK_TIMELINE_SEMAPHORE
1640void VulkanBaseApp::drawFrame()
1641{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected