OMNI_GRAPH_EXEC_REGISTER_PASS
Defined in omni/graph/exec/unstable/PassRegistry.h
-
OMNI_GRAPH_EXEC_REGISTER_PASS(type_, class_)
Adds an omni::graph::exec::unstable::IPass to a list to be registered at the module’s (i.e.g DLL) startup.
This macro should be called at global scope (not within a function/method).
In order to avoid accidentally registering a pass twice, it is recommended to call this macro from a *.cpp* file rather than a *.h* file.
This macro only adds the pass to a list of passes to register. This is useful if you have passes defined in several **.cpp** files in your module. It is up to the module developer to call omni::graph::exec::unstable::registerModulePasses() and omni::graph::exec::unstable::deregisterModulePasses() to perform the actual registration.
See Pass Registration for more information about pass registration.
- Parameters
type_ – A omni::graph::exec::unstable::PassType.
class_ – An implementation of omni::graph::exec::unstable::IPass.