[d3d11] Compute image data layout for unmapped textures

We sometimes need this information when uploading image data. Fixes #2380.
This commit is contained in:
Philip Rebohle 2021-11-29 16:55:35 +01:00
parent b6cd6aaecc
commit 1abd205216
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
1 changed files with 1 additions and 3 deletions

View File

@ -270,6 +270,7 @@ namespace dxvk {
layout.DepthPitch = vkLayout.depthPitch;
} break;
case D3D11_COMMON_TEXTURE_MAP_MODE_NONE:
case D3D11_COMMON_TEXTURE_MAP_MODE_BUFFER:
case D3D11_COMMON_TEXTURE_MAP_MODE_STAGING: {
auto packedFormatInfo = imageFormatInfo(m_packedFormat);
@ -304,9 +305,6 @@ namespace dxvk {
layout.Offset += size;
}
} break;
case D3D11_COMMON_TEXTURE_MAP_MODE_NONE:
break; /* no op */
}
// D3D wants us to return the total subresource size in some instances