diff options
-rw-r--r-- | helpers/d3d10size.hpp | 1 | ||||
-rw-r--r-- | helpers/d3d11size.hpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/helpers/d3d10size.hpp b/helpers/d3d10size.hpp index 45a39bf2..b5a5ef4d 100644 --- a/helpers/d3d10size.hpp +++ b/helpers/d3d10size.hpp @@ -230,6 +230,7 @@ _calcSubresourceSize(ID3D10Resource *pDstResource, UINT DstSubresource, const D3 Width = Desc.Width; Height = Desc.Height; Depth = Desc.Depth; + MipLevel = DstSubresource % Desc.MipLevels; } break; case D3D10_RESOURCE_DIMENSION_UNKNOWN: diff --git a/helpers/d3d11size.hpp b/helpers/d3d11size.hpp index be7016a9..e14351a0 100644 --- a/helpers/d3d11size.hpp +++ b/helpers/d3d11size.hpp @@ -161,6 +161,7 @@ _calcSubresourceSize(ID3D11Resource *pDstResource, UINT DstSubresource, const D3 Width = Desc.Width; Height = Desc.Height; Depth = Desc.Depth; + MipLevel = DstSubresource % Desc.MipLevels; } break; case D3D11_RESOURCE_DIMENSION_UNKNOWN: |