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

Method shutdown

modules/gui/renderer/src/render/skr_render_device.cpp:136–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134 }
135}
136void SkrRenderDevice::shutdown()
137{
138 // destroy vram service
139 if (_vram_service) skr_io_vram_service_t::destroy(_vram_service);
140
141 // destroy rg
142 if (_render_graph) RenderGraph::destroy(_render_graph);
143
144 // destroy cgpu
145 for (const auto& [flags, pipeline] : _pipelines)
146 {
147 auto rs = pipeline->root_signature;
148 cgpu_free_render_pipeline(pipeline);
149 cgpu_free_root_signature(rs);
150 }
151 if (_rs_pool) cgpu_free_root_signature_pool(_rs_pool);
152 if (_static_color_sampler) cgpu_free_sampler(_static_color_sampler);
153 if (_cgpu_queue) cgpu_free_queue(_cgpu_queue);
154 if (_cgpu_device) cgpu_free_device(_cgpu_device);
155 if (_cgpu_instance) cgpu_free_instance(_cgpu_instance);
156}
157
158// create view
159SkrRenderWindow* SkrRenderDevice::create_window(SWindowHandle window)

Callers

nothing calls this directly

Calls 8

cgpu_free_root_signatureFunction · 0.85
cgpu_free_samplerFunction · 0.85
cgpu_free_queueFunction · 0.85
cgpu_free_deviceFunction · 0.85
cgpu_free_instanceFunction · 0.85
destroyFunction · 0.50

Tested by

no test coverage detected