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

Method finalize

samples/render_graph/cross-process/receiver.cpp:180–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178}
179
180void ReceiverRenderer::finalize()
181{
182 // Free cgpu objects
183 cgpu_wait_queue_idle(gfx_queue);
184 cgpu_wait_fences(&present_fence, 1);
185 cgpu_free_fence(present_fence);
186 cgpu_free_swapchain(swapchain);
187 cgpu_free_surface(device, surface);
188 cgpu_free_render_pipeline(blit_pipeline);
189 cgpu_free_root_signature(blit_root_sig);
190 cgpu_free_sampler(static_sampler);
191 cgpu_free_queue(gfx_queue);
192 cgpu_free_device(device);
193 if (nsight_tracker) cgpu_free_nsight_tracker(nsight_tracker);
194 cgpu_free_instance(instance);
195}
196
197CGPUImportTextureDescriptor receiver_get_shared_handle(MDB_env* env, MDB_dbi dbi, SProcessId provider_id)
198{

Callers 1

receiver_mainFunction · 0.45

Calls 12

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
cgpu_free_nsight_trackerFunction · 0.50

Tested by

no test coverage detected