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.