pub trait DynNode<B: Backend, T: ?Sized>:
Debug
+ Sync
+ Send {
// Required methods
unsafe fn run<'a>(
&mut self,
ctx: &GraphContext<B>,
factory: &Factory<B>,
queue: &mut Queue<B>,
aux: &T,
frames: &Frames<B>,
waits: &[(&'a B::Semaphore, PipelineStage)],
signals: &[&'a B::Semaphore],
fence: Option<&mut Fence<B>>,
);
unsafe fn dispose(self: Box<Self>, factory: &mut Factory<B>, aux: &T);
}
Expand description
Trait-object safe Node
.
Required Methods§
Sourceunsafe fn run<'a>(
&mut self,
ctx: &GraphContext<B>,
factory: &Factory<B>,
queue: &mut Queue<B>,
aux: &T,
frames: &Frames<B>,
waits: &[(&'a B::Semaphore, PipelineStage)],
signals: &[&'a B::Semaphore],
fence: Option<&mut Fence<B>>,
)
unsafe fn run<'a>( &mut self, ctx: &GraphContext<B>, factory: &Factory<B>, queue: &mut Queue<B>, aux: &T, frames: &Frames<B>, waits: &[(&'a B::Semaphore, PipelineStage)], signals: &[&'a B::Semaphore], fence: Option<&mut Fence<B>>, )
Record commands required by node.
Recorded buffers go into submits
.