Multiple object rendering in Metalkit

I am working on rendering multiple objects in Metalkit. While doing it I can see objects are flickering if they are overlaying each-other. I'm passing the currentRenderPassDescriptor and current drawable in draw method which is calling every time. Please refer screenshot. Please help me out to render objects without flickering.

Replies

Hi, can you provide a better picture or video of the flickering? It sounds like it could be Z-fighting but it’s hard to tell from the picture.

Both greens are flickering. I cannot upload the video.

I want to add the circle orthogonally to other objects which are in orange and green.

Flickering is happening in both green objects when rendering circle.