Finishes most of the graphics pipeline refactoring.