Struct rin::gl::attributes::MatFormat [−][src]
pub struct MatFormat { pub name: Cow<'static, str>, pub location: u32, pub cols: usize, pub rows: usize, pub offset_in_vertex: usize, }
Attribute format for matrices
Internally generates several Format depending on the number of cols and rows
Fields
name: Cow<'static, str>
location: u32
cols: usize
rows: usize
offset_in_vertex: usize
Implementations
impl MatFormat
[src]
impl MatFormat
[src]pub fn into_row_formats(self) -> Vec<Format, Global>ⓘ
[src]
pub fn source_from<B>(&self, buffer: &B) -> Vec<(Format, B), Global>ⓘ where
B: DynVertexBufferBinding + Clone,
[src]
B: DynVertexBufferBinding + Clone,
Trait Implementations
impl Eq for MatFormat
[src]
impl StructuralEq for MatFormat
[src]
impl StructuralPartialEq for MatFormat
[src]
Auto Trait Implementations
impl RefUnwindSafe for MatFormat
impl Send for MatFormat
impl Sync for MatFormat
impl Unpin for MatFormat
impl UnwindSafe for MatFormat
Blanket Implementations
impl<T> CallHasher for T where
T: Hash,
[src]
impl<T> CallHasher for T where
T: Hash,
[src]impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]