Using Googles AR Core Depth API, the current depth information is stored in a RGB565 Texture.
If I want to calculate the current depth in a shader I use the following