MCPcopy Create free account
hub / github.com/Overv/VulkanTutorial / copyBuffer

Method copyBuffer

code/30_multisampling.cpp:1354–1362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1352 }
1353
1354 void copyBuffer(VkBuffer srcBuffer, VkBuffer dstBuffer, VkDeviceSize size) {
1355 VkCommandBuffer commandBuffer = beginSingleTimeCommands();
1356
1357 VkBufferCopy copyRegion{};
1358 copyRegion.size = size;
1359 vkCmdCopyBuffer(commandBuffer, srcBuffer, dstBuffer, 1, &copyRegion);
1360
1361 endSingleTimeCommands(commandBuffer);
1362 }
1363
1364 uint32_t findMemoryType(uint32_t typeFilter, VkMemoryPropertyFlags properties) {
1365 VkPhysicalDeviceMemoryProperties memProperties;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected