I created some data in my geometry shader which is used by my surface shader later. Now I'd like to remove the additional data after the frame is done. An cleanup in the geometry shader exit() procedure will obviously not work. And I cannot delete the contents in the surface shader exit() procedure because I don't know it the data will be used by other surface shaders.
My usual way was to create an output shader, append it to the camera and remove all data there. But this seems to be quite complex. So the question is: Is this really the correct way to ceanup data after a frame rendering?