mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
Correct byte size calculation for D3D12 array textures
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user