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

Method copyBuffer

code/29_mipmapping.cpp:1304–1312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1302 }
1303
1304 void copyBuffer(VkBuffer srcBuffer, VkBuffer dstBuffer, VkDeviceSize size) {
1305 VkCommandBuffer commandBuffer = beginSingleTimeCommands();
1306
1307 VkBufferCopy copyRegion{};
1308 copyRegion.size = size;
1309 vkCmdCopyBuffer(commandBuffer, srcBuffer, dstBuffer, 1, &copyRegion);
1310
1311 endSingleTimeCommands(commandBuffer);
1312 }
1313
1314 uint32_t findMemoryType(uint32_t typeFilter, VkMemoryPropertyFlags properties) {
1315 VkPhysicalDeviceMemoryProperties memProperties;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected