Creates a Sprite2D from the given resolver function that provides an Texture2D.
Creates a Sprite2D from the given image.
Creates a Sprite2D from the given texture.