Quick question for everyone -

Am I able to stack vent a toilet and shower into a 4" ABS stack using a TY with a 2" inlet? Both the tub and the toilet are within 6' of the stack. Or should I branch drain the lav and tub and branch vent these above the highest fixture and tie into the vent stack? Thoughts?