[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
.pipeline_layouts
.prepare(backend, Some(self.root_id))
.into_id(),
.id(),
group_ids: self
.group_ids
.iter()
.map(|id_in| {
hub.bind_group_layouts
.prepare(backend, Some(*id_in))
.into_id()
})
.map(|id_in| hub.bind_group_layouts.prepare(backend, Some(*id_in)).id())
.collect(),
}
}

View File

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