This sample extends the textured quad sample by adding a Metal compute encoder to convert the image to greyscale. Note the compute encoder is part of the same pass as the render encoder and hence demonstrates how you can use the same shared CPU/GPU data across compute and rendering.
iOS 8 SDK
iOS 8, 64 bit devices
Copyright (C) 2014 Apple Inc. All rights reserved.