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

Method finalize

samples/application/vmem_controller/vmem_controller.cpp:426–441  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

424}
425
426void SVMemCCModule::finalize()
427{
428 // Free cgpu objects
429 cgpu_wait_fences(&present_fence, 1);
430 cgpu_free_fence(present_fence);
431 for (auto buffer : buffers)
432 {
433 cgpu_free_buffer(buffer);
434 }
435 cgpu_free_swapchain(swapchain);
436 cgpu_free_surface(device, surface);
437 cgpu_free_sampler(static_sampler);
438 cgpu_free_queue(gfx_queue);
439 cgpu_free_device(device);
440 cgpu_free_instance(instance);
441}

Callers

nothing calls this directly

Calls 9

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