Building a deferred rendering pipeline