Metal off-screen drawing with Multi-Sampling
<p>How do I render primitives into off screen texture, not directly into the screen?</p>

<p>I have a set of triangles and corresponding color, I just want to draw them the same way I do to screen, but into off screen texture, that I can save into a file.</p>

<p>Can anybody show me a code sample of that?</p>