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

Method finalize

samples/render_graph/cross-process/provider.cpp:218–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216}
217
218void ProviderRenderer::finalize()
219{
220 // Free cgpu objects
221 cgpu_wait_queue_idle(gfx_queue);
222 cgpu_wait_fences(&present_fence, 1);
223 cgpu_free_fence(present_fence);
224 cgpu_free_swapchain(swapchain);
225 cgpu_free_surface(device, surface);
226 cgpu_free_render_pipeline(pipeline);
227 cgpu_free_render_pipeline(blit_pipeline);
228 cgpu_free_root_signature(root_sig);
229 cgpu_free_root_signature(blit_root_sig);
230 cgpu_free_sampler(static_sampler);
231 cgpu_free_queue(gfx_queue);
232 cgpu_free_device(device);
233 cgpu_free_instance(instance);
234}
235
236int provider_set_shared_handle(MDB_env* env, MDB_dbi dbi, SProcessId provider_id, CGPUImportTextureDescriptor info)
237{

Callers 1

provider_mainFunction · 0.45

Calls 11

cgpu_wait_queue_idleFunction · 0.85
cgpu_wait_fencesFunction · 0.85
cgpu_free_fenceFunction · 0.85
cgpu_free_swapchainFunction · 0.85
cgpu_free_surfaceFunction · 0.85
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

Tested by

no test coverage detected