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

Function finalize

samples/render_graph/rg-triangle/triangle.cpp:119–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119void finalize()
120{
121 // Free cgpu objects
122 cgpu_wait_queue_idle(gfx_queue);
123 cgpu_wait_fences(&present_fence, 1);
124 cgpu_free_fence(present_fence);
125 cgpu_free_swapchain(swapchain);
126 cgpu_free_surface(device, surface);
127 cgpu_free_render_pipeline(pipeline);
128 cgpu_free_root_signature(root_sig);
129 cgpu_free_queue(gfx_queue);
130 cgpu_free_device(device);
131 cgpu_free_instance(instance);
132}
133
134int main(int argc, char* argv[])
135{

Callers 1

mainFunction · 0.70

Calls 10

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_queueFunction · 0.85
cgpu_free_deviceFunction · 0.85
cgpu_free_instanceFunction · 0.85

Tested by

no test coverage detected