Hlsl How to set and get higher precision from a depth map ?

Well this was my original post where I decided to use encoding because there aren’t any supported 32-bit precision surface formats for iOS.