Engine creation attributes. More...
#include <RadientEngine.h>
Public Attributes | |
| RadientBackendCreateInfo | Backend = {} |
| Backend creation attributes. | |
| RadientAssetManagerCreateInfo | Assets = {} |
| Asset manager creation attributes. | |
| IThreadPool * | pThreadPool = nullptr |
| Uint32 | WorkerThreadCount = 0 |
| RadientResourceManagerCreateInfo | Resources = {} |
| GPU resource pool creation attributes. Used when the backend has a native device. | |
Engine creation attributes.
| IThreadPool* Diligent::RadientEngineCreateInfo::pThreadPool = nullptr |
Optional thread pool used by Radient for asynchronous CPU work.
If null, Radient creates an internal pool, drains its work, and joins its workers during engine destruction.
For a supplied pool, Radient retains a strong reference but does not stop or join its workers. The caller owns pool shutdown and must retain its own strong reference until the workers have been stopped and joined. When shutting down the pool, first call IRadientAssetManager::Stop(), then call IThreadPool::StopThreads() from a thread outside the pool before releasing the caller's pool reference. A shared pool may remain running after a Radient engine is destroyed, provided its owner continues to retain it.
Otherwise, an import worker can release the last pool reference and cause the pool to attempt to join that same worker. WaitForAllTasks() alone is not a substitute for joining: task-owned references may be released after that wait returns.
| Uint32 Diligent::RadientEngineCreateInfo::WorkerThreadCount = 0 |
Number of worker threads for the internal thread pool. Zero lets Radient choose a default based on the host system.