MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / shutdown

Function shutdown

samples/application/chat/main.cpp:363–388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

361void Quit(int rc);
362
363void shutdown()
364{
365 auto moduleManager = skr_get_module_manager();
366 cgpu_wait_queue_idle(skr_renderer_get_gfx_queue());
367 cgpu_free_fence(renderer.presentFence);
368 switch (initializeState)
369 {
370 case AAA_INITIALIZE_CHAT:
371 ShutdownChat();
372 case AAA_INITIALIZE_SOCKET:
373 GameNetworkingSockets_Kill();
374 case AAA_INITIALIZE_IMGUI:
375 render_graph_imgui_finalize();
376 case AAA_INITIALIZE_VFS:
377 skr_free_vfs(resource_vfs);
378 case AAA_INITIALIZE_RENDERER:
379 skr::render_graph::RenderGraph::destroy(renderer.renderGraph);
380 case AAA_INITIALIZE_WINDOW:
381 skr_free_window(mainWindow);
382 break;
383 }
384 moduleManager->destroy_module_graph();
385
386 SDL_Quit();
387 Quit(0);
388}
389
390void Quit(int rc)
391{

Callers 2

~ServerAdapterMethod · 0.85
mainFunction · 0.85

Calls 9

cgpu_wait_queue_idleFunction · 0.85
cgpu_free_fenceFunction · 0.85
ShutdownChatFunction · 0.85
skr_free_vfsFunction · 0.85
skr_free_windowFunction · 0.85
QuitFunction · 0.85
destroy_module_graphMethod · 0.80
destroyFunction · 0.50

Tested by

no test coverage detected