"retexturing" in GLSL TOP

I’m wondering if it’s possible to resample, or retexture within a GLSL TOP. I’m bringing a movie file in by saying: vec4 mov = texture(sTD2DInputs[0], st); //st having already been defined as vUV.st

then I do some fun things to that, and I want to take the result of those operations and do more operations (in this case I just want to do the same thing all over again). I could use a another GLSL TOP, of course, but I’m wondering if it’s possible to do it all within one TOP?

what I’ve tried is vec4 mov2 = texture(mov, st);
and a few similar expressions, but i just get errors.

You can use the ‘Passes’ parameter to run the shader again, and use the uTDPass to know what pass you are currently executing. This feeds the result of the previous pass into the first input of the current pass.
The only other way would be with a compute shader I think