Recently I decided to learn how to use the Metal framework with Swift. I read some turorials, watched videos, did a few things and finally I got to part where I have to use Depth Testing to make things look good.
I haven't done such low level graphics programming before, so I looked around the whole Internet on how Depth Testing works and how to implemented it using CAMetalLayer and Metal.
However all examples of Depth Testing, which I found, were done using Open GL and I couldn't find such functions in Metal.
How do I implement Depth Testing with CAMetalLayer using Metal and Swift?
Thank you in advance!