From ab2c7de5238cf71805b91504b18dad77bc4d165f Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Wed, 10 Jan 2018 10:18:26 +0100 Subject: [PATCH] [d3d11] Use CUBE instead of CUBE_ARRAY for non-array cubes Since the change has been reverted in the DXBC compiler, it also needs to be changed back during view creation. --- src/d3d11/d3d11_device.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/d3d11/d3d11_device.cpp b/src/d3d11/d3d11_device.cpp index 173f7ce83..4f5e0b415 100644 --- a/src/d3d11/d3d11_device.cpp +++ b/src/d3d11/d3d11_device.cpp @@ -283,10 +283,7 @@ namespace dxvk { break; case D3D11_SRV_DIMENSION_TEXTURECUBE: - // Some applications bind non-array cube maps to cube map - // array slots. In order to support this, we'll use a cube - // map array view even for non-array cube maps. - viewInfo.type = VK_IMAGE_VIEW_TYPE_CUBE_ARRAY; + viewInfo.type = VK_IMAGE_VIEW_TYPE_CUBE; viewInfo.minLevel = desc.TextureCube.MostDetailedMip; viewInfo.numLevels = desc.TextureCube.MipLevels; viewInfo.minLayer = 0;