summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Vulkan/FramebufferManager.cpp
diff options
context:
space:
mode:
authorStenzek <stenzek@gmail.com>2016-11-19 22:22:04 +1000
committerStenzek <stenzek@gmail.com>2016-12-04 20:10:13 +1000
commite241ec666689ccf89949d4469fd60f505b63514a (patch)
treea2bfe767ba4068e3a45aad6ef702424d06da7b1b /Source/Core/VideoBackends/Vulkan/FramebufferManager.cpp
parent4bc0e14995343de05666e33fcd973a7d082403c2 (diff)
Vulkan: Implement StagingTexture2D on top of StagingBuffer
Greatly simplifies things, and we weren't using the linear texture implementation anyway.
Diffstat (limited to 'Source/Core/VideoBackends/Vulkan/FramebufferManager.cpp')
-rw-r--r--Source/Core/VideoBackends/Vulkan/FramebufferManager.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/Core/VideoBackends/Vulkan/FramebufferManager.cpp b/Source/Core/VideoBackends/Vulkan/FramebufferManager.cpp
index 61eb194e49..1f497416be 100644
--- a/Source/Core/VideoBackends/Vulkan/FramebufferManager.cpp
+++ b/Source/Core/VideoBackends/Vulkan/FramebufferManager.cpp
@@ -1007,10 +1007,8 @@ bool FramebufferManager::CreateReadbackTextures()
VK_IMAGE_USAGE_TRANSFER_SRC_BIT | VK_IMAGE_USAGE_TRANSFER_DST_BIT |
VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT);
- // We can't copy to/from color<->depth formats, so using a linear texture is not an option here.
- // TODO: Investigate if vkCmdBlitImage can be used. The documentation isn't that clear.
- m_depth_readback_texture = StagingTexture2DBuffer::Create(STAGING_BUFFER_TYPE_READBACK, EFB_WIDTH,
- EFB_HEIGHT, EFB_DEPTH_TEXTURE_FORMAT);
+ m_depth_readback_texture = StagingTexture2D::Create(STAGING_BUFFER_TYPE_READBACK, EFB_WIDTH,
+ EFB_HEIGHT, EFB_DEPTH_TEXTURE_FORMAT);
if (!m_depth_copy_texture || !m_depth_readback_texture)
{
ERROR_LOG(VIDEO, "Failed to create EFB depth readback texture");