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

pub struct CoreBatch<T: ShaderParam> {
    // some fields omitted
}

Referenced core - a minimal sealed batch that depends on Context. It has references to the resources (mesh, program, state), that are held by the context that created the batch, so these have to be used together.

Methods

impl<T: ShaderParam> 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> Copy for CoreBatch<T> where T: Copy

impl<T: ShaderParam> Clone for CoreBatch<T> where T: Clone

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

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

impl<T: ShaderParam> Debug for CoreBatch<T>

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

impl<T: ShaderParam> PartialEq for CoreBatch<T>

fn eq(&self, other: &CoreBatch<T>) -> bool

fn ne(&self, other: &Rhs) -> bool

impl<T: ShaderParam> Eq for CoreBatch<T>

impl<T: ShaderParam> PartialOrd for CoreBatch<T>

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

fn lt(&self, other: &Rhs) -> bool

fn le(&self, other: &Rhs) -> bool

fn gt(&self, other: &Rhs) -> bool

fn ge(&self, other: &Rhs) -> bool

impl<T: ShaderParam> Ord for CoreBatch<T>

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