Render depth with Metal

Hi there,


I am trying to render depth maps with Metal so that I finally have a matrix where each entry represents the depth of the pixel.


Thanks in advance!

Rico