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

Method copyBuffer

code/25_sampler.cpp:1057–1065  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1055 }
1056
1057 void copyBuffer(VkBuffer srcBuffer, VkBuffer dstBuffer, VkDeviceSize size) {
1058 VkCommandBuffer commandBuffer = beginSingleTimeCommands();
1059
1060 VkBufferCopy copyRegion{};
1061 copyRegion.size = size;
1062 vkCmdCopyBuffer(commandBuffer, srcBuffer, dstBuffer, 1, &copyRegion);
1063
1064 endSingleTimeCommands(commandBuffer);
1065 }
1066
1067 uint32_t findMemoryType(uint32_t typeFilter, VkMemoryPropertyFlags properties) {
1068 VkPhysicalDeviceMemoryProperties memProperties;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected