Skip to content

Commit a453307

Browse files
committed
Account correctly for UAV mip slice when fetching 2D texture data
1 parent de7a74c commit a453307

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

renderdoc/driver/d3d11/d3d11_analyse.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ void D3D11DebugManager::CreateShaderGlobalState(ShaderDebug::GlobalState &global
748748

749749
rowPitch = mapped.RowPitch;
750750
depthPitch = 0;
751-
size_t datasize = rowPitch * desc.Height;
751+
size_t datasize = rowPitch * RDCMAX(1U, desc.Height >> udesc.Texture2D.MipSlice);
752752

753753
uint32_t numSlices = 1;
754754

0 commit comments

Comments
 (0)