1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-25 16:54:15 +01:00

[d3d11] Allow 2D array view creation for 3D textures

Fixes a regression that was introduced with the texture
class refactor. Fixes validation issues in Hellblade.
This commit is contained in:
Philip Rebohle 2018-03-14 20:40:11 +01:00
parent 0e0ee61d9b
commit eb8ae5cc82
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -63,6 +63,9 @@ namespace dxvk {
if (m_desc.MiscFlags & D3D11_RESOURCE_MISC_TEXTURECUBE) if (m_desc.MiscFlags & D3D11_RESOURCE_MISC_TEXTURECUBE)
imageInfo.flags |= VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT; imageInfo.flags |= VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT;
if (Dimension == D3D11_RESOURCE_DIMENSION_TEXTURE3D)
imageInfo.flags |= VK_IMAGE_CREATE_2D_ARRAY_COMPATIBLE_BIT_KHR;
// Test whether the combination of image parameters is supported // Test whether the combination of image parameters is supported
if (!CheckImageSupport(&imageInfo, VK_IMAGE_TILING_OPTIMAL)) { if (!CheckImageSupport(&imageInfo, VK_IMAGE_TILING_OPTIMAL)) {
throw DxvkError(str::format( throw DxvkError(str::format(