@breif Copy data from a VkImage.
Use Custom Cmd.
Use Custom Cmd.
523 {
525
526
527
528
531 VK_IMAGE_LAYOUT_UNDEFINED,
532 VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL
533 );
534
539 vkCmdCopyImageToBuffer(commandBuffer,
m_Image, VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, dstBuffer, regions.size(), regions.data());
540 });
541
542
543
544
545
546
547
550 VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL,
551 VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL
552 );
553 }
#define SPICES_PROFILE_ZONE
static void CustomGraphicCmd(VulkanState &vulkanState, T func)
Create a new command buffer and record custom cmd, submit to graphic queue, execute it immediately.
VkFormat m_Format
The image format.
void TransitionImageLayout(VkFormat format, VkImageLayout oldLayout, VkImageLayout newLayout)
VkImage m_Image
The VkImage this Class Wrapped.
VulkanState & m_VulkanState
The global VulkanState Referenced from VulkanRenderBackend.