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

Method copyBuffer

cpp/5_Domain_Specific/simpleVulkanMMAP/VulkanBaseApp.cpp:1623–1632  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1621}
1622
1623void VulkanBaseApp::copyBuffer(VkBuffer dst, VkBuffer src, VkDeviceSize size)
1624{
1625 VkCommandBuffer commandBuffer = beginSingleTimeCommands();
1626
1627 VkBufferCopy copyRegion = {};
1628 copyRegion.size = size;
1629 vkCmdCopyBuffer(commandBuffer, src, dst, 1, &copyRegion);
1630
1631 endSingleTimeCommands(commandBuffer);
1632}
1633
1634void VulkanBaseApp::drawFrame()
1635{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected