Home -> RendererPlugin -> CreateGraphicsDeviceEnumerator
Description
The CreateGraphicsDeviceEnumerator method creates a graphics device enumerator for the renderer plugin. The RendererPlugin object keeps the plugin module loaded through shared ownership.
Warning
Keep the RendererPlugin object alive while the enumerator, devices, and renderers created from this plugin are in use. The plugin object itself owns the loaded module, so no separate module handle output is required.
Usage
IGraphicsDeviceEnumerator::unique_ptr CreateGraphicsDeviceEnumerator(cobalt::logging::ILogger::unique_ptr log) const;
Argument list
- log [cobalt::logging::ILogger::unique_ptr]
- The logger transferred to the graphics device enumerator.
Return value
- [IGraphicsDeviceEnumerator]
- A newly allocated graphics device enumerator for this renderer plugin.