[wgpu-core] remove FutureId.into_id()

This commit is contained in:
teoxoy 2024-09-07 02:26:16 +02:00 committed by Teodor Tanasoaia
parent c182d3f24f
commit 2addb267fc
2 changed files with 2 additions and 11 deletions

View File

@ -462,15 +462,11 @@ impl ImplicitPipelineIds<'_> {
root_id: hub root_id: hub
.pipeline_layouts .pipeline_layouts
.prepare(backend, Some(self.root_id)) .prepare(backend, Some(self.root_id))
.into_id(), .id(),
group_ids: self group_ids: self
.group_ids .group_ids
.iter() .iter()
.map(|id_in| { .map(|id_in| hub.bind_group_layouts.prepare(backend, Some(*id_in)).id())
hub.bind_group_layouts
.prepare(backend, Some(*id_in))
.into_id()
})
.collect(), .collect(),
} }
} }

View File

@ -55,15 +55,10 @@ pub(crate) struct FutureId<'a, T: StorageItem> {
} }
impl<T: StorageItem> FutureId<'_, T> { impl<T: StorageItem> FutureId<'_, T> {
#[allow(dead_code)]
pub fn id(&self) -> Id<T::Marker> { pub fn id(&self) -> Id<T::Marker> {
self.id self.id
} }
pub fn into_id(self) -> Id<T::Marker> {
self.id
}
/// Assign a new resource to this ID. /// Assign a new resource to this ID.
/// ///
/// Registers it with the registry. /// Registers it with the registry.