mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-18 02:52:10 +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:
parent
bde8ba9400
commit
ab2c7de523
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user