In Photoshop, if you have a mask applied to a layer (levels of grey from black to white to indicate transparency), you should have a corresponding channel in the channels palette. To make this work, duplicate the channel in the channels palette, name it whatever you’d like, and save it as a Targa file – 32 bit – you’ll see the Alpha Channels check box is automatically selected, meaning it should work.
https://www.youtube.com/graphicsdump
https://www.myr3d.com