Pure Swift project, in which I'm loading MTLTexture from .png file and then generating mipmap images using Metal kernel functions.