pub struct ResourceNode {
pub name: String,
pub handle: ResourceHandle,
pub descriptor: ResourceDescriptor,
pub lifetime: ResourceLifetime,
pub producer: Option<String>,
pub consumers: Vec<String>,
}Expand description
A resource node in the graph. Resources are vertices connected to passes via read/write edges.
Fields§
§name: String§handle: ResourceHandle§descriptor: ResourceDescriptor§lifetime: ResourceLifetime§producer: Option<String>Pass that produces this resource (if any).
consumers: Vec<String>Passes that consume this resource.
Implementations§
Source§impl ResourceNode
impl ResourceNode
pub fn new( name: &str, handle: ResourceHandle, descriptor: ResourceDescriptor, lifetime: ResourceLifetime, ) -> Self
Trait Implementations§
Source§impl Clone for ResourceNode
impl Clone for ResourceNode
Source§fn clone(&self) -> ResourceNode
fn clone(&self) -> ResourceNode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ResourceNode
impl RefUnwindSafe for ResourceNode
impl Send for ResourceNode
impl Sync for ResourceNode
impl Unpin for ResourceNode
impl UnsafeUnpin for ResourceNode
impl UnwindSafe for ResourceNode
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
Mutably borrows from an owned value. Read more