Struct gfx::render::batch::RefBatch [] [src]

pub struct RefBatch<T: ShaderParam> {
    pub core: CoreBatch<T>,
    pub slice: Slice<T>,
    pub params: T,
}

An expanded version of the CoreBatch, carrying the parameters and the mesh slice with it, publicly mutable.

Fields

core

Core of the batch

slice

Mesh slice

params

Shader parameter values

Methods from Deref<Target=CoreBatch<T>>

fn cmp_mesh(&self, other: &CoreBatch<T>) -> Ordering

Compare meshes by Id

fn cmp_program(&self, other: &CoreBatch<T>) -> Ordering

Compare programs by Id

fn cmp_state(&self, other: &CoreBatch<T>) -> Ordering

Compare draw states by Id

Trait Implementations

impl<T: ShaderParam> Deref for RefBatch<T>

type Target = CoreBatch<T>

fn deref(&self) -> &CoreBatch<T>

impl<T: ShaderParam + Clone> Clone for RefBatch<T> where T: Copy

fn clone(&self) -> RefBatch<T>

fn clone_from(&mut self, source: &Self)

impl<T: ShaderParam + Debug> Debug for RefBatch<T>

fn fmt(&self, f: &mut Formatter) -> Result