mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-01 19:29:16 +01:00
[d3d11] Use only one mip level for multisampled textures
This commit is contained in:
parent
06cff50453
commit
72f954088b
@ -291,8 +291,9 @@ namespace dxvk {
|
|||||||
= GetFormatModeFromBindFlags(m_desc.BindFlags);
|
= GetFormatModeFromBindFlags(m_desc.BindFlags);
|
||||||
|
|
||||||
if (m_desc.MipLevels == 0) {
|
if (m_desc.MipLevels == 0) {
|
||||||
m_desc.MipLevels = util::computeMipLevelCount(
|
m_desc.MipLevels = m_desc.SampleDesc.Count <= 1
|
||||||
{ m_desc.Width, m_desc.Height, 1u });
|
? util::computeMipLevelCount({ m_desc.Width, m_desc.Height, 1u })
|
||||||
|
: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
DxvkImageCreateInfo info;
|
DxvkImageCreateInfo info;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user