mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-12 13:08:50 +01:00
[d3d11] Compute image data layout for unmapped textures
We sometimes need this information when uploading image data. Fixes #2380.
This commit is contained in:
parent
b6cd6aaecc
commit
1abd205216
@ -270,6 +270,7 @@ namespace dxvk {
|
||||
layout.DepthPitch = vkLayout.depthPitch;
|
||||
} break;
|
||||
|
||||
case D3D11_COMMON_TEXTURE_MAP_MODE_NONE:
|
||||
case D3D11_COMMON_TEXTURE_MAP_MODE_BUFFER:
|
||||
case D3D11_COMMON_TEXTURE_MAP_MODE_STAGING: {
|
||||
auto packedFormatInfo = imageFormatInfo(m_packedFormat);
|
||||
@ -304,9 +305,6 @@ namespace dxvk {
|
||||
layout.Offset += size;
|
||||
}
|
||||
} break;
|
||||
|
||||
case D3D11_COMMON_TEXTURE_MAP_MODE_NONE:
|
||||
break; /* no op */
|
||||
}
|
||||
|
||||
// D3D wants us to return the total subresource size in some instances
|
||||
|
Loading…
Reference in New Issue
Block a user