mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-22 06:44:14 +00:00
[wgpu-core] remove FutureId.into_id()
This commit is contained in:
parent
c182d3f24f
commit
2addb267fc
@ -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(),
|
||||
}
|
||||
}
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user