1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-18 11:52:12 +01:00

[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.
This commit is contained in:
Philip Rebohle 2018-01-10 10:18:26 +01:00
parent bde8ba9400
commit ab2c7de523

View File

@ -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;