mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-10 00:31:00 +00:00
Set baseArrayLayer to 0 when copying from 3D image
This commit is contained in:
@@ -2835,6 +2835,9 @@ void VulkanReplay::GetTextureData(ResourceId tex, uint32_t arrayIdx, uint32_t mi
|
||||
}
|
||||
else
|
||||
{
|
||||
if(imInfo.type == VK_IMAGE_TYPE_3D)
|
||||
copyregion[0].imageSubresource.baseArrayLayer = 0;
|
||||
|
||||
// copy from desired subresource in srcImage to buffer
|
||||
vt->CmdCopyImageToBuffer(Unwrap(cmd), srcImage, VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL,
|
||||
readbackBuf, 1, copyregion);
|
||||
|
||||
Reference in New Issue
Block a user