diff --git a/wgpu-core/src/device/global.rs b/wgpu-core/src/device/global.rs index 5aa03e3e5..526087af9 100644 --- a/wgpu-core/src/device/global.rs +++ b/wgpu-core/src/device/global.rs @@ -70,6 +70,13 @@ pub type MeshPipelineDescriptor<'a> = pipeline::MeshPipelineDescriptor< id::PipelineCacheId, >; +pub type RenderPipelineDescriptor<'a> = pipeline::RenderPipelineDescriptor< + 'a, + id::PipelineLayoutId, + id::ShaderModuleId, + id::PipelineCacheId, +>; + impl Global { pub fn adapter_is_surface_supported( &self, @@ -857,7 +864,7 @@ impl Global { pub fn device_create_render_pipeline( &self, device_id: DeviceId, - desc: &pipeline::RenderPipelineDescriptor, + desc: &RenderPipelineDescriptor, id_in: Option, ) -> ( id::RenderPipelineId, diff --git a/wgpu-core/src/pipeline.rs b/wgpu-core/src/pipeline.rs index 7e8ea339d..7da9f656c 100644 --- a/wgpu-core/src/pipeline.rs +++ b/wgpu-core/src/pipeline.rs @@ -651,9 +651,9 @@ pub enum RenderPipelineVertexProcessor<'a, SM = Arc> { #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] pub struct RenderPipelineDescriptor< 'a, - PLL = PipelineLayoutId, - SM = ShaderModuleId, - PLC = PipelineCacheId, + PLL = Arc, + SM = Arc, + PLC = Arc, > { pub label: Label<'a>, /// The layout of bind groups for this pipeline.