| 424 | } |
| 425 | |
| 426 | void 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 | } |
nothing calls this directly
no test coverage detected