rdesc.m_Size.x * rdesc.m_Size.y * rdesc.m_Size.z * rdesc.m_ElementsPerEntry * rdesc.m_ElementSizeInBytes];  D0D00_MAPPED_SUBRESOURCE mappedResource;  pd0dImmediateContext->Map(debugtex, D0D00CalcSubresource(0,0,0), D0D00_MAP_READ, 0, &mappedResource);  memcpy((void*)cpuMemory, (void*)mappedResource.pData, rdesc.m_Size.x * rdesc.m_Size.y * rdesc.m_Size.z * rdesc.m_ElementsPerEntry * rdesc.m_ElementSizeInBytes);  pd0dImmediateContext->Unmap( debugtex, 0 );    SAFE_RELEASE(debugtex);  