Just a C++ port of Apple's Metal API example.
Since the Metal C++ API is rather new, there aren't many examples on the internet that demonstrate explicit usage of the C++ parts. This code can serve as a reference if you plan to use the C++ API specifically.