The measure would make California the first state to require that all new semiautomatic weapons be equipped with technology known as microstamping , which imprints microscopic markings as a gun fires .