Utility function for easily submittingTFunctionto be run on the render thread. Must be invoked from the game thread. If rendering does not use a separate thread, theTFunctionwill be executed immediately, otherwise it will be added to the render thread task queue.