Correct byte size calculation for D3D12 array textures

This commit is contained in:
baldurk
2017-01-18 14:26:36 +01:00
parent a59ebcbc3b
commit 43b66df816
+1
View File
@@ -179,6 +179,7 @@ FetchTexture D3D12Replay::GetTexture(ResourceId id)
ret.byteSize = 0;
for(uint32_t i = 0; i < ret.mips; i++)
ret.byteSize += GetByteSize(ret.width, ret.height, ret.depth, desc.Format, i);
ret.byteSize *= ret.arraysize;
switch(ret.dimension)
{