When a texture come out distorted in Metal

Resource: Thirty Days of Metal — Day 16.
This post is records an error caused by a mistake made during a Metal graphics exercise.