16. Image Processing in Metal

Everything we see hides another thing, we always want to see what is hidden by what we see.—René Magritte

One of the most common kernel processing operations is image processing. Image processing has been a popular GPU programming application since shaders were introduced. It encompasses a large number of uses from creating an interesting Snapchat filter effect to neural network training. Because you are basically just processing a texture, you don’t need to set up an entire rendering pipeline to do image processing, as there are no vertices to position. Processing can be as simple as modifying a single fragment and as complex as looking at massive grids of pixels in relation to one another. This chapter introduces ...

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

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.