1. A computer-implemented method, comprising: automatically determining a dependency graph for a plurality of render targets in a scene; automatically determining a plurality of strongly connected components in the dependency graph, wherein each of the plurality of strongly connected components comprises one or more of the plurality of render targets; automatically determining a topological order for the plurality of strongly connected components; and rendering the scene based on the topological order using the plurality of render targets.