Let's say I'm path tracing a fairly complex scene, which results in a low framerate, but I would also like to change the rendering parameters using an immediate mode GUI that I'd like to be responsive and so should render at a minimum of 60fps, on the same window. After searching online I've gathered that it's not really possible to interrupt a GPU in the middle of a draw call execution; so I'm guessing the only way to render interactive and non-interactive content at the same time is to perform the rendering of the interactive part on the integrated GPU or in software. But what if the UI is layered on top of the path traced image with some transparency applied; in that case I would need to share a texture across different contexts. Do all graphics APIs provide a way to do that? What would be the best approach for this sort of thing?