vent
Figure A is not a vent. B is okay, at least as far as you show it, assuming you have a sink connected to it to "wash" the horizontal portion. Otherwise it cannot be horizontal until you are above the spill line of the shower, or 42" above the floor whichever your inspector insists on.