pub struct PassGraph<'exec, 'q, D>where
    D: ExecutionDomain,{ /* private fields */ }
Expand description

GPU task graph, used for synchronizing resources over a single queue.

Implementations§

source§

impl<'exec, 'q, D> PassGraph<'exec, 'q, D>where D: ExecutionDomain,

source

pub fn new() -> Self

Create a new task graph.

source

pub fn add_pass(self, pass: Pass<'exec, 'q, D>) -> Result<Self>

Add a pass to a task graph.

Errors
  • This function can fail if adding the pass results in a cyclic dependency in the graph.
source

pub fn build(self) -> Result<BuiltPassGraph<'exec, 'q, D>>

Builds the task graph so it can be recorded into a command buffer.

source

pub fn task_graph( &self ) -> &TaskGraph<GpuResource, GpuBarrier, GpuTask<'exec, 'q, GpuResource, D>>

Returns the task graph built by the GPU task graph system, useful for outputting dotfiles.

source

pub fn num_nodes(&self) -> usize

Returns the total amount of nodes in the graph.

Auto Trait Implementations§

§

impl<'exec, 'q, D> !RefUnwindSafe for PassGraph<'exec, 'q, D>

§

impl<'exec, 'q, D> !Send for PassGraph<'exec, 'q, D>

§

impl<'exec, 'q, D> !Sync for PassGraph<'exec, 'q, D>

§

impl<'exec, 'q, D> Unpin for PassGraph<'exec, 'q, D>

§

impl<'exec, 'q, D> !UnwindSafe for PassGraph<'exec, 'q, D>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.