O'Reilly logo

Learning iOS 8 Game Development Using Swift by Siddharth Shekar

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

The graphics pipeline and shaders

Let's look at these stages in detail. We'll look at the preparation stage first.

The preparation/initialization stage

The following steps are included in this stage:

  1. Get device.
  2. Command queue.
  3. Resources.
  4. Render pipeline.
  5. View.

We'll look at each step, one by one.

Get device

First, we have to get the device that will be responsible for rendering our object. This will let us know the capabilities of the GPU in terms on how powerful it is and what its features are. In Metal, it will basically tell us what device we are running the game on, that is, whether it is running on an iPhone, iPad, or OS X. It will also tell us which version of the device it is and whether it is an iPhone 6, 5, 4, or any other device.

Command queue ...

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