Hold on!

Warning: this link might be unsafe, please double check the link before you proceed.

http://iauns.com/gpu/Metal_GPU_Programming_02_-_Shading_a_Triangle.html