True depth sensor - Depth map of macro images

How can I take a macro photo (using attached third party macro lenses), and get a macro image AND macro depth map?


Ex:


With iPhone X, I can take a photo and get :

- Photo

- Height map


if I attach macro lens I will get:

- Macro photo

- Height map (NOT macro)


Would it work if I attach the same macro lens to BOTH depth sensor AND camera?



thanks!