D3D resolveBindTexture implementation

This commit is contained in:
Jack Andersen
2016-02-25 14:11:09 -10:00
parent 48eab88cfc
commit 0eb11ef78a
4 changed files with 239 additions and 101 deletions

View File

@@ -2491,7 +2491,7 @@ struct VulkanCommandQueue : IGraphicsCommandQueue
if (tlOrigin)
copyInfo.srcOffset.y = rect.location[1];
else
copyInfo.srcOffset.y = ctexture->m_height - rect.location[1];
copyInfo.srcOffset.y = ctexture->m_height - rect.location[1] - rect.size[1];
copyInfo.dstOffset = copyInfo.srcOffset;
copyInfo.extent.width = ctexture->m_width;
copyInfo.extent.height = ctexture->m_height;
@@ -2531,7 +2531,7 @@ struct VulkanCommandQueue : IGraphicsCommandQueue
if (tlOrigin)
copyInfo.srcOffset.y = rect.location[1];
else
copyInfo.srcOffset.y = ctexture->m_height - rect.location[1];
copyInfo.srcOffset.y = ctexture->m_height - rect.location[1] - rect.size[1];
copyInfo.dstOffset = copyInfo.srcOffset;
copyInfo.extent.width = ctexture->m_width;
copyInfo.extent.height = ctexture->m_height;