Texture keeps track of its format, and resize() is a member function