pub struct PassDescriptor {
pub name: &'static str,
pub reads: Vec<ResourceId>,
pub writes: Vec<ResourceId>,
}Expand description
Declarative description of a render pass.
Fields§
§name: &'static strDebug-friendly pass name.
reads: Vec<ResourceId>Resources read by this pass.
writes: Vec<ResourceId>Resources written by this pass.
Implementations§
Source§impl PassDescriptor
impl PassDescriptor
Sourcepub fn new(name: &'static str) -> Self
pub fn new(name: &'static str) -> Self
Builds a descriptor with the given name and no declared resources.
Sourcepub fn reads(self, id: ResourceId) -> Self
pub fn reads(self, id: ResourceId) -> Self
Adds a read dependency.
Sourcepub fn writes(self, id: ResourceId) -> Self
pub fn writes(self, id: ResourceId) -> Self
Adds a write dependency.
Trait Implementations§
Source§impl Clone for PassDescriptor
impl Clone for PassDescriptor
Source§fn clone(&self) -> PassDescriptor
fn clone(&self) -> PassDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PassDescriptor
impl RefUnwindSafe for PassDescriptor
impl Send for PassDescriptor
impl Sync for PassDescriptor
impl Unpin for PassDescriptor
impl UnsafeUnpin for PassDescriptor
impl UnwindSafe for PassDescriptor
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