I've written a resource cache, which as you'd expect, can work with any type of data. To this end, when retrieving resource data a void* is returned.
I could've sworn I saw something in the API that creates a texture from a buffer, but either can't find or I was thinking of something else