diff --git a/renderdoc/driver/d3d11/d3d11_shaderdebug.cpp b/renderdoc/driver/d3d11/d3d11_shaderdebug.cpp index 89ea017d1..ec7592866 100644 --- a/renderdoc/driver/d3d11/d3d11_shaderdebug.cpp +++ b/renderdoc/driver/d3d11/d3d11_shaderdebug.cpp @@ -1255,8 +1255,8 @@ bool D3D11DebugAPIWrapper::CalculateSampleGather( ShaderVariable lookupResult("tex", 0.0f, 0.0f, 0.0f, 0.0f); float *retFloats = (float *)mapped.pData; - uint32_t *retUInts = (uint32_t *)(retFloats + 16); - int32_t *retSInts = (int32_t *)(retUInts + 16); + uint32_t *retUInts = (uint32_t *)(retFloats + 8); + int32_t *retSInts = (int32_t *)(retUInts + 8); if(cbufferData.debugSampleRetType == DEBUG_SAMPLE_UINT) { diff --git a/renderdoc/driver/d3d12/d3d12_shaderdebug.cpp b/renderdoc/driver/d3d12/d3d12_shaderdebug.cpp index 30127bcfb..1f34bf780 100644 --- a/renderdoc/driver/d3d12/d3d12_shaderdebug.cpp +++ b/renderdoc/driver/d3d12/d3d12_shaderdebug.cpp @@ -1288,8 +1288,8 @@ bool D3D12DebugAPIWrapper::CalculateSampleGather( ShaderVariable lookupResult("tex", 0.0f, 0.0f, 0.0f, 0.0f); float *retFloats = (float *)results; - uint32_t *retUInts = (uint32_t *)(retFloats + 16); - int32_t *retSInts = (int32_t *)(retUInts + 16); + uint32_t *retUInts = (uint32_t *)(retFloats + 8); + int32_t *retSInts = (int32_t *)(retUInts + 8); if(cbufferData.debugSampleRetType == DEBUG_SAMPLE_UINT) {