Here's a link to
Chapter 7 of the 2012 IPC which covers all things Sanitary Drainage.
One of the most common questions we get is about the required drain plumbing size when converting from a tub to a shower. If the photo below is too small to read, it's found in Section 709 of the link above.