3. Your First Metal Application (Hello, Triangle!)

Even the largest avalanche is triggered by small things.—Vernor Vinge

To get a good feel for how Metal works, we visit an old chestnut that acts as the Hello, World! of graphics programming: rendering a triangle to the screen. This chapter is a high-level overview that touches on the various players in the Metal ecosystem. A more in-depth exploration of drawing 2D and 3D graphics is presented later in this book. This chapter helps you lay a solid foundation upon which to build more useful and complex programs.

Creating a Metal Application in Xcode (without Using a Template)

This chapter begins by setting up Metal without using the built-in Apple template. You might be wondering why you would ...

Get Metal Programming Guide: Tutorial and Reference via Swift now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.