Move internal format determination to Texture objects