chore: resolve clippy::large_enum_variant

This commit is contained in:
Erich Gubler committed 2024-12-17 13:30:52 -05:00
1 parent 04a10405b3
commit 1f93ea0692
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -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()
+2 -2
View File
@@ -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.
@@ -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))
}
}