OMNI_KIT_EXEC_CORE_ON_MODULE_STARTED#

OMNI_KIT_EXEC_CORE_ON_MODULE_STARTED(moduleName_, ...)#

Helper macro to ensure EF features are enabled in the current module/plugin.

This macro should be called from either carbOnPluginStartup or onStarted.

If your module/plugin registers EF nodes or passes, you must call this macro.

moduleName_ is the name of your plugin and is used for debugging purposes.

The second argument is optional and points to a callback that will be called when any other plugin that also calls OMNI_KIT_EXEC_CORE_ON_MODULE_STARTED is about to be unloaded. The purpose of the callback is to give this module a chance to remove any references to objects that contain code that is about to be unloaded. The signature of the callback is void(void). See omni::kit::exec::core::unstable::IExecutionControllerFactory::addClearCallback for more details.