Trait gfx_scene::AbstractPhase
[−]
[src]
pub trait AbstractPhase<R, M, V> where
R: Resources,
V: ToDepth, { fn enqueue(&mut self, &Mesh<R>, &Slice<R>, &M, &V) -> Result<bool, Error>; fn flush<S>(&mut self, stream: &mut S) -> Result<(), DrawError<Error>>
where
S: Stream<R>; }
An abstract rendering phase.
Required Methods
fn enqueue(&mut self, &Mesh<R>, &Slice<R>, &M, &V) -> Result<bool, Error>
Add an entity to the queue.
fn flush<S>(&mut self, stream: &mut S) -> Result<(), DrawError<Error>> where
S: Stream<R>,
S: Stream<R>,
Flush the queue into a given stream.
Implementors
impl<R, M, V, T, Y> AbstractPhase<R, M, V> for Phase<R, M, V, T, Y> where
M: Material,
R: Resources,
T: Technique<R, M, V>,
V: ToDepth + Copy,
Y: Memory<(<T as Technique<R, M, V>>::Kernel, Mesh<R>), Object<<V as ToDepth>::Depth, <T as Technique<R, M, V>>::Kernel, <T as Technique<R, M, V>>::Params>>,
<T as Technique<R, M, V>>::Params: Clone,
<<T as Technique<R, M, V>>::Params as ShaderParam>::Link: Clone,