Some preparations for texture loading impl