How can one compose DynamicTextures at runtime in C++?

I want to load texture dynamically with mipmaps…Is there any way to do it?