MCPcopy Create free account
hub / github.com/Rust-GPU/rust-gpu / drop

Method drop

examples/runners/ash/src/main.rs:640–651  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

638
639impl Drop for RenderBase {
640 fn drop(&mut self) {
641 unsafe {
642 self.device.destroy_device(None);
643 self.surface_loader.destroy_surface(self.surface, None);
644 if let Some((debug_utils, call_back)) =
645 Option::zip(self.debug_utils_loader.take(), self.debug_call_back.take())
646 {
647 debug_utils.destroy_debug_utils_messenger(call_back, None);
648 }
649 self.instance.destroy_instance(None);
650 }
651 }
652}
653
654pub struct RenderCtx {

Callers

nothing calls this directly

Calls 2

cleanup_pipelinesMethod · 0.80
cleanup_swapchainMethod · 0.80

Tested by

no test coverage detected