I have two render passes, one that is nested within another, and I'd like for the inner pass to have access to the color attachments of the outer pass. Is it possible for render pass 2 to have knowledge of render pass 1's color at any given moment? Here is the logic:
1.) Start render pass 1 with texture 1
2.) Draw objects
3.) Start render pass 2 with texture 2
4.) Draw objects using color from render pass 1
5.) End render pass 2
6.) Draw output of render pass 2 into render pass 1
7.) End render pass 1