From 9e7b6a0b1ca912249e75aa9e452d1245bf8029f8 Mon Sep 17 00:00:00 2001 From: lwansbrough Date: Tue, 31 Aug 2021 12:57:28 -0700 Subject: [PATCH] Add Deref implementation for ComputePipeline --- pipelined/bevy_render2/src/render_resource/pipeline.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pipelined/bevy_render2/src/render_resource/pipeline.rs b/pipelined/bevy_render2/src/render_resource/pipeline.rs index c1318648bd993..22c493301c555 100644 --- a/pipelined/bevy_render2/src/render_resource/pipeline.rs +++ b/pipelined/bevy_render2/src/render_resource/pipeline.rs @@ -59,3 +59,12 @@ impl From for ComputePipeline { } } } + +impl Deref for ComputePipeline { + type Target = wgpu::ComputePipeline; + + #[inline] + fn deref(&self) -> &Self::Target { + &self.value + } +}