Trait AttributeType
Other items inwillow
pub trait AttributeType: Sized + Copy + 'static { fn num_comps() -> usize; fn gl_type() -> u32; }
Types that can be used as an attribute argument type.
fn num_comps() -> usize
Number of components in the type.
fn gl_type() -> u32
Corresponding GLenum specifying the data type of each component in the array, e.g. WebGlRenderingContext::UNSIGNED_SHORT.
WebGlRenderingContext::UNSIGNED_SHORT
impl AttributeType for i8
impl AttributeType for (i8, i8)
impl AttributeType for (i8, i8, i8)
impl AttributeType for (i8, i8, i8, i8)
impl AttributeType for Vector2<i8>
impl AttributeType for Vector3<i8>
impl AttributeType for Vector4<i8>
impl AttributeType for i16
impl AttributeType for (i16, i16)
impl AttributeType for (i16, i16, i16)
impl AttributeType for (i16, i16, i16, i16)
impl AttributeType for Vector2<i16>
impl AttributeType for Vector3<i16>
impl AttributeType for Vector4<i16>
impl AttributeType for u8
impl AttributeType for (u8, u8)
impl AttributeType for (u8, u8, u8)
impl AttributeType for (u8, u8, u8, u8)
impl AttributeType for Vector2<u8>
impl AttributeType for Vector3<u8>
impl AttributeType for Vector4<u8>
impl AttributeType for u16
impl AttributeType for (u16, u16)
impl AttributeType for (u16, u16, u16)
impl AttributeType for (u16, u16, u16, u16)
impl AttributeType for Vector2<u16>
impl AttributeType for Vector3<u16>
impl AttributeType for Vector4<u16>
impl AttributeType for f32
impl AttributeType for (f32, f32)
impl AttributeType for (f32, f32, f32)
impl AttributeType for (f32, f32, f32, f32)
impl AttributeType for Vector2<f32>
impl AttributeType for Vector3<f32>
impl AttributeType for Vector4<f32>