Serves as the glycosyl donor for formation of bacterial glycogen, amylose in green algae, and amylopectin in higher plants.