Enum gfx::device::attrib::Type [] [src]

pub enum Type {
    Int(IntSubType, IntSize, SignFlag),
    Float(FloatSubType, FloatSize),
    Special,
}

The type of an attribute.

Variants

Int
Float
Special

Methods

impl Type

fn is_compatible(&self, bt: BaseType) -> Result<(), ()>

Check if the attribute is compatible with a particular shader type.

fn get_size(&self) -> u8

Return the size of the type in bytes.

Trait Implementations

Derived Implementations

impl Debug for Type

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

impl Clone for Type

fn clone(&self) -> Type

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

impl Copy for Type

impl Hash for Type

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

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

impl PartialOrd for Type

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

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

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

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

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

impl PartialEq for Type

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

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

impl Ord for Type

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

impl Eq for Type