Add ability to set data on texture.

Mimics Buffer behavior.
Add test.