Struct rafx_framework::graph::RenderGraphNodeCallbacks[][src]

pub struct RenderGraphNodeCallbacks<RenderGraphUserContextT> { /* fields omitted */ }

All the callbacks associated with rendergraph nodes. We keep them separate from the nodes so that we can avoid propagating generic parameters throughout the rest of the rendergraph code

Implementations

impl<RenderGraphUserContextT> RenderGraphNodeCallbacks<RenderGraphUserContextT>[src]

pub fn set_renderpass_callback<CallbackFnT>(
    &mut self,
    node_id: RenderGraphNodeId,
    f: CallbackFnT
) where
    CallbackFnT: Fn(VisitRenderpassNodeArgs<'_>, &RenderGraphUserContextT) -> RafxResult<()> + 'static + Send
[src]

Adds a callback that receives the renderpass associated with the node

pub fn set_compute_callback<CallbackFnT>(
    &mut self,
    node_id: RenderGraphNodeId,
    f: CallbackFnT
) where
    CallbackFnT: Fn(VisitComputeNodeArgs<'_>, &RenderGraphUserContextT) -> RafxResult<()> + 'static + Send
[src]

Adds a callback for compute based nodes

pub fn add_render_phase_dependency<PhaseT: RenderPhase>(
    &mut self,
    node_id: RenderGraphNodeId
)
[src]

pub fn create_visitor<'a>(
    &'a self,
    context: &'a RenderGraphUserContextT
) -> Box<dyn RenderGraphNodeVisitor + 'a>
[src]

Pass to PreparedRenderGraph::execute_graph, this will cause the graph to be executed, triggering any registered callbacks

Trait Implementations

impl<T> Default for RenderGraphNodeCallbacks<T>[src]

Auto Trait Implementations

impl<RenderGraphUserContextT> !RefUnwindSafe for RenderGraphNodeCallbacks<RenderGraphUserContextT>[src]

impl<RenderGraphUserContextT> Send for RenderGraphNodeCallbacks<RenderGraphUserContextT>[src]

impl<RenderGraphUserContextT> !Sync for RenderGraphNodeCallbacks<RenderGraphUserContextT>[src]

impl<RenderGraphUserContextT> Unpin for RenderGraphNodeCallbacks<RenderGraphUserContextT>[src]

impl<RenderGraphUserContextT> !UnwindSafe for RenderGraphNodeCallbacks<RenderGraphUserContextT>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.