I have an Input source, and I would like to pass the last N frames into the shader and get the result as a texture, I have tried the following code, but it doesn\'t capture