mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-08 08:40:55 +00:00
Account correctly for UAV mip slice when fetching 2D texture data
This commit is contained in:
@@ -739,7 +739,7 @@ void D3D11DebugManager::CreateShaderGlobalState(ShaderDebug::GlobalState &global
|
||||
|
||||
rowPitch = mapped.RowPitch;
|
||||
depthPitch = 0;
|
||||
size_t datasize = rowPitch * desc.Height;
|
||||
size_t datasize = rowPitch * RDCMAX(1U, desc.Height >> udesc.Texture2D.MipSlice);
|
||||
|
||||
uint32_t numSlices = 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user