Comes through natural progression.
During Santa Modesta, you'll get the Disintegrator ray. When you run out of ammo, firing at police and their vehicles, the game teaches you how to generate more ammo.
Basically by aiming at inanimate objects and pressing
waiting for it to then turn in to ammo.