mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-25 07: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:
parent
0e0ee61d9b
commit
eb8ae5cc82
@ -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(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user