how to export a material as a texture in c++ unreal

There is an entire unreal live stream on this subject look here Baking Materials to Textures | Live Training | Unreal Engine