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

Method copyBuffer

code/24_texture_image.cpp:1018–1026  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1016 }
1017
1018 void copyBuffer(VkBuffer srcBuffer, VkBuffer dstBuffer, VkDeviceSize size) {
1019 VkCommandBuffer commandBuffer = beginSingleTimeCommands();
1020
1021 VkBufferCopy copyRegion{};
1022 copyRegion.size = size;
1023 vkCmdCopyBuffer(commandBuffer, srcBuffer, dstBuffer, 1, &copyRegion);
1024
1025 endSingleTimeCommands(commandBuffer);
1026 }
1027
1028 uint32_t findMemoryType(uint32_t typeFilter, VkMemoryPropertyFlags properties) {
1029 VkPhysicalDeviceMemoryProperties memProperties;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected