Trait gfx::render::batch::Batch
[−]
[src]
pub trait Batch<R: Resources> { type Error: Debug; fn get_data(&self) -> Result<BatchData<R>, Self::Error>; fn fill_params(&self, &mut ParamStorage<R>) -> Result<&ProgramHandle<R>, Self::Error>; }
Abstract batch trait
Associated Types
type Error: Debug
Possible errors occurring at batch access
Required Methods
fn get_data(&self) -> Result<BatchData<R>, Self::Error>
Obtain information about the mesh, program, and state
fn fill_params(&self, &mut ParamStorage<R>) -> Result<&ProgramHandle<R>, Self::Error>
Fill shader parameter values
Implementors
impl<'a, T: ShaderParam> Batch<T> for ImplicitBatch<'a, T>
impl<T: ShaderParam> Batch<T> for OwnedBatch<T>
impl<'a, T: ShaderParam + 'a> Batch<T> for CoreBatchFull<'a, T>
impl<'a, T: ShaderParam + 'a> Batch<T> for RefBatchFull<'a, T>