| 277 | } |
| 278 | |
| 279 | void RenderSystem::reinitRendering() |
| 280 | { |
| 281 | _INTR_PROFILE_AUTO("Reinit. Rendering"); |
| 282 | |
| 283 | // Reset allocators |
| 284 | GpuMemoryManager::resetPool(MemoryPoolType::kResolutionDependentBuffers); |
| 285 | GpuMemoryManager::resetPool(MemoryPoolType::kResolutionDependentImages); |
| 286 | |
| 287 | // Update from config files |
| 288 | RenderProcess::Default::loadRendererConfig(); |
| 289 | MaterialManager::loadMaterialPassConfig(); |
| 290 | MaterialManager::createAllResources(); |
| 291 | |
| 292 | // Recreate draw calls |
| 293 | GameStates::Editing::onReinitRendering(); |
| 294 | |
| 295 | Components::MeshManager::destroyResources( |
| 296 | Components::MeshManager::_activeRefs); |
| 297 | Components::MeshManager::createResources( |
| 298 | Components::MeshManager::_activeRefs); |
| 299 | |
| 300 | // Recreate all pipelines (to update the view port size) |
| 301 | PipelineManager::createAllResources(); |
| 302 | } |
| 303 | |
| 304 | // <- |
| 305 |
nothing calls this directly
no outgoing calls
no test coverage detected