graph-context function

Register a graph context for the duration of the current frame