pub struct ResourceInfo {
pub id: ResId,
pub kind: &'static str,
pub dirty: bool,
pub rebuildable: bool,
}Expand description
One resource slot of a ResourceGraph, as plain data.
The serialisable projection of NodeInfo: where that borrows the
stored resource, this reports the handle and the shape around it, so a
caller that only inspects the graph needs no access to the wgpu handles.
No bare slot index is kept: the id carries it, and the
slot order is already the order ResourceGraph::resource_infos returns.
Note that the id’s high 32 bits are the generation, so sorting by id orders
by generation rather than by slot; ResId::index is the slot.
Fields§
§id: ResIdThe resource’s ResId. Resolve it with ResourceGraph::resolve.
kind: &'static strThe resource kind, as Resource::kind_name reports it.
dirty: boolWhether this resource or one of its dependencies was replaced, so
ResourceGraph::maintain still has work to do.
rebuildable: boolWhether the graph can rebuild this resource from its inputs on its own.
Trait Implementations§
Source§impl Clone for ResourceInfo
impl Clone for ResourceInfo
Source§impl Debug for ResourceInfo
impl Debug for ResourceInfo
impl Eq for ResourceInfo
Source§impl<'ʄ> Facet<'ʄ> for ResourceInfo
Available on crate feature reflect only.
impl<'ʄ> Facet<'ʄ> for ResourceInfo
reflect only.Source§impl PartialEq for ResourceInfo
impl PartialEq for ResourceInfo
impl StructuralPartialEq for ResourceInfo
Auto Trait Implementations§
impl Forget for ResourceInfo
impl Freeze for ResourceInfo
impl RefUnwindSafe for ResourceInfo
impl Send for ResourceInfo
impl Sync for ResourceInfo
impl Unpin for ResourceInfo
impl UnsafeUnpin for ResourceInfo
impl UnwindSafe for ResourceInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more