pub struct FrameGraph { /* private fields */ }Expand description
A minimal frame graph that can validate pass dependencies.
Implementations§
Source§impl FrameGraph
impl FrameGraph
Sourcepub fn add_pass(&mut self, pass: FrameGraphPass)
pub fn add_pass(&mut self, pass: FrameGraphPass)
Add a pass.
Sourcepub fn pass_names(&self) -> Vec<&str>
pub fn pass_names(&self) -> Vec<&str>
Return all pass names in insertion order.
Sourcepub fn writers_of(&self, resource: &str) -> Vec<&FrameGraphPass>
pub fn writers_of(&self, resource: &str) -> Vec<&FrameGraphPass>
Return all passes that write to resource.
Sourcepub fn readers_of(&self, resource: &str) -> Vec<&FrameGraphPass>
pub fn readers_of(&self, resource: &str) -> Vec<&FrameGraphPass>
Return all passes that read from resource.
Sourcepub fn validate_dependencies(&self) -> Vec<String>
pub fn validate_dependencies(&self) -> Vec<String>
Validate that all declared dependencies reference existing passes. Returns a list of invalid dependency references.
Sourcepub fn async_pass_count(&self) -> usize
pub fn async_pass_count(&self) -> usize
Count how many passes run on the async compute queue.
Trait Implementations§
Source§impl Debug for FrameGraph
impl Debug for FrameGraph
Source§impl Default for FrameGraph
impl Default for FrameGraph
Source§fn default() -> FrameGraph
fn default() -> FrameGraph
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FrameGraph
impl RefUnwindSafe for FrameGraph
impl Send for FrameGraph
impl Sync for FrameGraph
impl Unpin for FrameGraph
impl UnsafeUnpin for FrameGraph
impl UnwindSafe for FrameGraph
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
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>
Converts
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>
Converts
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