Compile and run the application; you should see a scene that first got converted to black and white and was then inverted.
What just happened?
We created a second auxiliary texture; this texture was used as the render target for the black and white material, and then this texture with the black and white image of our scene was used as an input for the invert material, which then got rendered to the display.