CVMetalTextureCache last n frames

Hi,


I'm processing camera feed video with a Metal compute shader.


What I would like though is to be able to send a texture array of the previous n frames to the shader? not just the current frame.


Any suggetions if this is possible.


Thank you.