Skip to content

Commit

Permalink
chore: resolve clippy::large_enum_variant
Browse files Browse the repository at this point in the history
  • Loading branch information
ErichDonGubler committed Dec 17, 2024
1 parent 04a1040 commit 1f93ea0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion wgpu-core/src/device/resource.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2647,7 +2647,7 @@ impl Device {

pub(crate) fn derive_pipeline_layout(
self: &Arc<Self>,
mut derived_group_layouts: ArrayVec<bgl::EntryMap, { hal::MAX_BIND_GROUPS }>,
mut derived_group_layouts: Box<ArrayVec<bgl::EntryMap, { hal::MAX_BIND_GROUPS }>>,
) -> Result<Arc<binding_model::PipelineLayout>, pipeline::ImplicitLayoutError> {
while derived_group_layouts
.last()
Expand Down
4 changes: 2 additions & 2 deletions wgpu-core/src/validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<bgl::EntryMap, { hal::MAX_BIND_GROUPS }>),
Derived(Box<ArrayVec<bgl::EntryMap, { hal::MAX_BIND_GROUPS }>>),
/// The binding layout is provided by the user in BGLs.
///
/// This will be validated against the shader's interfaces.
Expand All @@ -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))
}
}

Expand Down

0 comments on commit 1f93ea0

Please sign in to comment.