Copy the Memory's data to this VkImage.
Instance a VkMemoryToImageCopyEXT.
Issue the copy.
Instance a VkMemoryToImageCopyEXT.
Issue the copy.
406 {
408
412 VkMemoryToImageCopyEXT memoryCopy{};
413 memoryCopy.sType = VK_STRUCTURE_TYPE_MEMORY_TO_IMAGE_COPY_EXT;
414 memoryCopy.imageSubresource.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT;
415 memoryCopy.imageSubresource.mipLevel = 0;
416 memoryCopy.imageSubresource.baseArrayLayer = 0;
417 memoryCopy.imageSubresource.layerCount = 1;
418 memoryCopy.imageExtent.width =
m_Width;
419 memoryCopy.imageExtent.height =
m_Height;
420 memoryCopy.imageExtent.depth =
m_Layers;
421 memoryCopy.pHostPointer = data;
422
426 VkCopyMemoryToImageInfoEXT copyInfo{};
427 copyInfo.sType = VK_STRUCTURE_TYPE_COPY_MEMORY_TO_IMAGE_INFO_EXT;
429 copyInfo.dstImageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL;
430 copyInfo.regionCount = 1;
431 copyInfo.pRegions = &memoryCopy;
432
434 }
#define SPICES_PROFILE_ZONE
int m_Height
Image height.
VkImage m_Image
The VkImage this Class Wrapped.
uint32_t m_Layers
Image layer(texture cube: 6).
VulkanState & m_VulkanState
The global VulkanState Referenced from VulkanRenderBackend.