How can I use the result drawn in metal as a camera input?

I want to use it as an input source for an existing app, but is it useless to draw it in View?
Where can I recognize it?
How can I use the result drawn in metal as a camera input?
 
 
Q