"Typically one would need to either cook the sugar with the other ingredients or use a food processor to grind granulated sugar into what one calls "superfine" sugar. Otherwise the sugar can remain "grainy" but it can be desirable. I grew up with that kind of icing(frosting)"