diff --git a/wgpu-core/src/device/resource.rs b/wgpu-core/src/device/resource.rs index 904b5bade..e83e843ea 100644 --- a/wgpu-core/src/device/resource.rs +++ b/wgpu-core/src/device/resource.rs @@ -2647,7 +2647,7 @@ impl Device { pub(crate) fn derive_pipeline_layout( self: &Arc, - mut derived_group_layouts: ArrayVec, + mut derived_group_layouts: Box>, ) -> Result, pipeline::ImplicitLayoutError> { while derived_group_layouts .last() diff --git a/wgpu-core/src/validation.rs b/wgpu-core/src/validation.rs index 9ac2d6f78..7755401a5 100644 --- a/wgpu-core/src/validation.rs +++ b/wgpu-core/src/validation.rs @@ -819,7 +819,7 @@ pub enum BindingLayoutSource<'a> { /// The binding layout is derived from the pipeline layout. /// /// This will be filled in by the shader binding validation, as it iterates the shader's interfaces. - Derived(ArrayVec), + Derived(Box>), /// The binding layout is provided by the user in BGLs. /// /// This will be validated against the shader's interfaces. @@ -832,7 +832,7 @@ impl<'a> BindingLayoutSource<'a> { for _ in 0..limits.max_bind_groups { array.push(Default::default()); } - BindingLayoutSource::Derived(array) + BindingLayoutSource::Derived(Box::new(array)) } }