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

Method cleanup_pipelines

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

Source from the content-addressed store, hash-verified

826 }
827
828 pub fn cleanup_pipelines(&mut self) {
829 unsafe {
830 self.base.device.device_wait_idle().unwrap();
831 for pipeline in self.pipelines.drain(..) {
832 self.base.device.destroy_pipeline(pipeline.pipeline, None);
833 self.base
834 .device
835 .destroy_pipeline_layout(pipeline.pipeline_layout, None);
836 }
837 }
838 }
839
840 pub fn build_pipelines(
841 &mut self,

Callers 2

rebuild_pipelinesMethod · 0.80
dropMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected