[−][src]Struct azul_core::gl::VertexAttribute
Fields
name: &'static str
Attribute name of the vertex attribute in the vertex shader, i.e. "vAttrXY"
layout_location: Option<usize>
If the vertex shader has a specific location, (like layout(location = 2) vAttrXY
),
use this instead of the name to look up the uniform location.
attribute_type: VertexAttributeType
Type of items of this attribute (i.e. for a FloatVec2
, would be VertexAttributeType::Float
)
item_count: usize
Number of items of this attribute (i.e. for a FloatVec2
, would be 2
(= 2 consecutive f32 values))
Implementations
impl VertexAttribute
[src]
pub fn get_stride(&self) -> usize
[src]
Trait Implementations
impl Clone for VertexAttribute
[src]
fn clone(&self) -> VertexAttribute
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for VertexAttribute
[src]
impl Debug for VertexAttribute
[src]
impl Eq for VertexAttribute
[src]
impl Hash for VertexAttribute
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for VertexAttribute
[src]
fn cmp(&self, other: &VertexAttribute) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<VertexAttribute> for VertexAttribute
[src]
fn eq(&self, other: &VertexAttribute) -> bool
[src]
fn ne(&self, other: &VertexAttribute) -> bool
[src]
impl PartialOrd<VertexAttribute> for VertexAttribute
[src]
fn partial_cmp(&self, other: &VertexAttribute) -> Option<Ordering>
[src]
fn lt(&self, other: &VertexAttribute) -> bool
[src]
fn le(&self, other: &VertexAttribute) -> bool
[src]
fn gt(&self, other: &VertexAttribute) -> bool
[src]
fn ge(&self, other: &VertexAttribute) -> bool
[src]
impl StructuralEq for VertexAttribute
[src]
impl StructuralPartialEq for VertexAttribute
[src]
Auto Trait Implementations
impl RefUnwindSafe for VertexAttribute
impl Send for VertexAttribute
impl Sync for VertexAttribute
impl Unpin for VertexAttribute
impl UnwindSafe for VertexAttribute
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,