d3d: Track memory copies/uploads/downloads.