O'Reilly logo

Application Development with Swift by Hossam Ghareeb

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Getting started with Metal

Now I think you have enough background knowledge to get started with Metal. Let's start building our demo together.

  1. Open Xcode, create new project, and choose the Game template.
    Getting started with Metal
  2. Then, write the name of the MetalDemo project, choose Swift as a language, and select Metal in the Game Technology options list.
    Getting started with Metal
  3. Now, build and run in your device. You should see a beautiful triangle moving in 3D.

We will go through the code together and explain the most important parts of it in how to draw this triangle.

Devices and CAMetalLayers

Open ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required