Made the interface for textures and render targets slightly simpler.