changed SPTextureFormat to NS_ENUM