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