MCPcopy Create free account
hub / github.com/begla/Intrinsic / initManagers

Method initManagers

IntrinsicCore/src/IntrinsicRendererRenderSystem.cpp:428–473  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

426// <-
427
428void RenderSystem::initManagers()
429{
430 _INTR_LOG_INFO("Inititializing Renderer Managers...");
431
432 // Init managers
433 {
434 BufferManager::init();
435 GpuProgramManager::init();
436 RenderPassManager::init();
437 VertexLayoutManager::init();
438 PipelineLayoutManager::init();
439 PipelineManager::init();
440 DrawCallManager::init();
441 ComputeCallManager::init();
442 ImageManager::init();
443 FramebufferManager::init();
444 MaterialManager::init();
445 }
446
447 // Load managers
448 {
449 GpuProgramManager::loadFromMultipleFiles("managers/gpu_programs/",
450 ".gpu_program.json");
451 ImageManager::loadFromMultipleFiles("managers/images/", ".image.json");
452 MaterialManager::loadFromMultipleFiles("managers/materials/",
453 ".material.json");
454 }
455
456 // Setup default vertex layouts
457 {
458 // Mesh
459 {
460 VertexLayoutRef meshVertexLayout =
461 VertexLayoutManager::createVertexLayout(_N(Mesh));
462 VertexLayoutManager::resetToDefault(meshVertexLayout);
463
464 Helper::createDefaultMeshVertexLayout(meshVertexLayout);
465
466 VertexLayoutRef debugLineVertexLayout =
467 VertexLayoutManager::createVertexLayout(_N(DebugLineVertex));
468 VertexLayoutManager::resetToDefault(debugLineVertexLayout);
469
470 Helper::createDebugLineVertexLayout(debugLineVertexLayout);
471 }
472 }
473}
474
475// <-
476

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected