mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-28 17:19:11 +01:00
chore: resolve clippy::large_enum_variant
This commit is contained in:
1 parent
04a10405b3
commit
1f93ea0692
2 files changed
+3
-3
No files matched your search
@@ -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()
|
||||
|
||||
@@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user