mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-31 14:52:11 +01:00
[d3d11] Fix layer count for 3D RTVs with non-zero base mip level
We have to take the mip level into account as well, or otherwise we may create a view with more layers than the selected mip level has.
This commit is contained in:
parent
2533b9f4ed
commit
57e5b05f32
@ -268,7 +268,7 @@ namespace dxvk {
|
|||||||
}
|
}
|
||||||
|
|
||||||
format = resourceDesc.Format;
|
format = resourceDesc.Format;
|
||||||
numLayers = resourceDesc.Depth;
|
numLayers = resourceDesc.Depth >> pDesc->Texture3D.MipSlice;
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user