Since iRig Pre HD is a mic preamp that has an XLR input connector you would need to accomplish two things which you can via a direct box / DI: First, you'll need a 1/4" input. Second, you'll need to convert the bass signal to a signal whose level and such can be recognized by a mic preamp. Typically you'd plug an electric bass into a Hi-Z/Instrument input on an audio interface (or into an amp or similar, of course) which expect the type of signal from your bass.
For guitar and bass I recommend
Z-TONE DI. It gives you a great and quiet direct box plus the ability to shape your tone with the Z-TONE circuit.