Each gun takes one module to Amplify, then Gunsmith materials for every perk. Some perks lock out others for good, so pick before you spend.

The materials most perks need

Fossilized Lightning
Fossilized Lightning9 guns · 27 in all9perks
Fluted Rotor Core
Fluted Rotor Core7 guns · 26 in all8perks
Pressure Regulator
Pressure Regulator6 guns · 20 in all7perks
Pneumatic Actuator
Pneumatic Actuator5 guns · 14 in all5perks
Propellant Valve Assembly
Propellant Valve Assembly5 guns · 12 in all5perks
Assessor Matrix
Assessor Matrix3 guns · 7 in all3perks
Queen Reactor
Queen Reactor3 guns · 7 in all+2 for research3perks
Turbine Compressor
Turbine Compressor2 guns · 7 in all2perks
Matriarch Reactor
Matriarch Reactor2 guns · 3 in all+2 for research2perks

Every gun, by the module it takes

Amplification Module Mk. I

Mk. I module One for each of the 3 Common guns

Hairpin
Kettle
Rattler
Amplification Module Mk. II

Mk. II module One for each of the 2 Uncommon guns

Burletta
Il Toro
Amplification Module Mk. III

Mk. III module One for each of the 5 Rare guns

Anvil
Canto
Osprey
Rascal
Renegade
Amplification Module Mk. IV

Mk. IV module One for each of the 2 Epic guns

Bettina
Hullcracker
Amplification Module Mk. V

Mk. V module One for each of the 3 Legendary guns

Aphelion
Equalizer
Jupiter

Not confirmed yet: most perk amounts haven't been checked in game. Research projects each cost 5,000 Research Points plus ARC parts: see them in the checklist.