createPassFactory#

Fully qualified name: omni::graph::exec::unstable::createPassFactory

template<typename Fn>
PassFactoryPtr omni::graph::exec::unstable::createPassFactory(
Fn &&fn,
) noexcept#

Generates an IPassFactory from an invocable object such as a function pointer, functor, etc.

The given function should have the signature IPass*(IGraphBuilder*).

This function always returns a valid pointer.

The given invocable object must be thread safe since it will be called concurrently in omni::graph::exec::unstable::IPassPipeline.