December 2017
Intermediate to advanced
351 pages
7h 52m
English
Time is the scarcest resource and unless it is managed nothing else can be managed.—Peter Drucker
The purpose of Metal, in a nutshell, is to prepare data to be processed by the GPU. It doesn’t have to be vertex position data—it could be image data, fluid dynamic information, and so on. In Chapter 5, “Introduction to Shaders,” you explored how to program the GPU to process this data. In this chapter, you learn the ways to prepare blocks of data to be processed by the GPU.
Resources in Metal are represented by instances of MTLResource. The MTLResource protocol defines the interface for any resource object that represents an allocation of memory. Resources fall into one ...
Read now
Unlock full access