Raise error when trying to set Texture.set_data with different dtype

To make it so that the internal dtype is changed seems a bit
complicated given the use of views and internal storage