Text this: Realizing depth measurement and edge detection based on a single metasurface