(&mut self)
| 638 | |
| 639 | impl 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 | |
| 654 | pub struct RenderCtx { |
nothing calls this directly
no test coverage detected