Struct gfx_phase::Phase
[−]
[src]
pub struct Phase<R: Resources, M: Material, V: ToDepth, T: Technique<R, M, V>, Y> { pub name: String, pub technique: T, pub sort: Option<OrderFun<V::Depth, T::Kernel, T::Params>>, // some fields omitted }
Phase is doing batch construction, accumulation, and memorization, based on a given technique.
Fields
name: String
Phase name.
technique: T
Contained technique.
sort: Option<OrderFun<V::Depth, T::Kernel, T::Params>>
Sorting function.
Methods
impl<R: Resources, M: Material, V: ToDepth, T: Technique<R, M, V>> Phase<R, M, V, T, ()>
[src]
fn new(name: &str, tech: T) -> Phase<R, M, V, T, ()>
Create a new phase from a given technique.
fn with_sort(
self,
fun: OrderFun<V::Depth, T::Kernel, T::Params>
) -> Phase<R, M, V, T, ()>
self,
fun: OrderFun<V::Depth, T::Kernel, T::Params>
) -> Phase<R, M, V, T, ()>
Enable sorting of rendered objects.
fn with_cache(self) -> CachedPhase<R, M, V, T>
Enable caching of created render objects.
Trait Implementations
impl<R: Resources, M: Material, V: ToDepth + Copy, T: Technique<R, M, V>, Y: Memory<(T::Kernel, Mesh<R>), Object<V::Depth, T::Kernel, T::Params>>> AbstractPhase<R, M, V> for Phase<R, M, V, T, Y> where
T::Params: Clone,
<T::Params as ShaderParam>::Link: Clone,
[src]
T::Params: Clone,
<T::Params as ShaderParam>::Link: Clone,