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

Method copyBuffer

code/26_texture_mapping.cpp:1087–1095  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1085 }
1086
1087 void copyBuffer(VkBuffer srcBuffer, VkBuffer dstBuffer, VkDeviceSize size) {
1088 VkCommandBuffer commandBuffer = beginSingleTimeCommands();
1089
1090 VkBufferCopy copyRegion{};
1091 copyRegion.size = size;
1092 vkCmdCopyBuffer(commandBuffer, srcBuffer, dstBuffer, 1, &copyRegion);
1093
1094 endSingleTimeCommands(commandBuffer);
1095 }
1096
1097 uint32_t findMemoryType(uint32_t typeFilter, VkMemoryPropertyFlags properties) {
1098 VkPhysicalDeviceMemoryProperties memProperties;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected