Struct gfx::device::attrib::Format [] [src]

pub struct Format {
    pub elem_count: Count,
    pub elem_type: Type,
    pub offset: Offset,
    pub stride: Stride,
    pub instance_rate: InstanceRate,
}

Complete format of a vertex attribute.

Fields

elem_count

Number of elements per vertex

elem_type

Type of a single element

offset

Offset in bytes to the first vertex

stride

Stride in bytes between consecutive vertices

instance_rate

Instance rate per vertex

Trait Implementations

Derived Implementations

impl Debug for Format

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

impl Clone for Format

fn clone(&self) -> Format

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

impl Copy for Format

impl Hash for Format

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl PartialOrd for Format

fn partial_cmp(&self, __arg_0: &Format) -> Option<Ordering>

fn lt(&self, __arg_0: &Format) -> bool

fn le(&self, __arg_0: &Format) -> bool

fn gt(&self, __arg_0: &Format) -> bool

fn ge(&self, __arg_0: &Format) -> bool

impl PartialEq for Format

fn eq(&self, __arg_0: &Format) -> bool

fn ne(&self, __arg_0: &Format) -> bool

impl Ord for Format

fn cmp(&self, __arg_0: &Format) -> Ordering

impl Eq for Format