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

Method copyBuffer

code/27_depth_buffering.cpp:1164–1172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1162 }
1163
1164 void copyBuffer(VkBuffer srcBuffer, VkBuffer dstBuffer, VkDeviceSize size) {
1165 VkCommandBuffer commandBuffer = beginSingleTimeCommands();
1166
1167 VkBufferCopy copyRegion{};
1168 copyRegion.size = size;
1169 vkCmdCopyBuffer(commandBuffer, srcBuffer, dstBuffer, 1, &copyRegion);
1170
1171 endSingleTimeCommands(commandBuffer);
1172 }
1173
1174 uint32_t findMemoryType(uint32_t typeFilter, VkMemoryPropertyFlags properties) {
1175 VkPhysicalDeviceMemoryProperties memProperties;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected