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
|
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(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user