Struct gfx_hal::pso::AttributeDesc
source · pub struct AttributeDesc {
pub location: Location,
pub binding: BufferIndex,
pub element: Element<Format>,
}
Expand description
PSO vertex attribute descriptor
Fields
location: Location
Attribute binding location in the shader.
binding: BufferIndex
Binding number of the associated vertex buffer descriptor.
element: Element<Format>
Attribute element description.
Trait Implementations
sourceimpl Clone for AttributeDesc
impl Clone for AttributeDesc
sourcefn clone(&self) -> AttributeDesc
fn clone(&self) -> AttributeDesc
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for AttributeDesc
impl Debug for AttributeDesc
sourceimpl Hash for AttributeDesc
impl Hash for AttributeDesc
sourceimpl Ord for AttributeDesc
impl Ord for AttributeDesc
sourcefn cmp(&self, other: &AttributeDesc) -> Ordering
fn cmp(&self, other: &AttributeDesc) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<AttributeDesc> for AttributeDesc
impl PartialEq<AttributeDesc> for AttributeDesc
sourcefn eq(&self, other: &AttributeDesc) -> bool
fn eq(&self, other: &AttributeDesc) -> bool
sourceimpl PartialOrd<AttributeDesc> for AttributeDesc
impl PartialOrd<AttributeDesc> for AttributeDesc
sourcefn partial_cmp(&self, other: &AttributeDesc) -> Option<Ordering>
fn partial_cmp(&self, other: &AttributeDesc) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for AttributeDesc
impl Eq for AttributeDesc
impl StructuralEq for AttributeDesc
impl StructuralPartialEq for AttributeDesc
Auto Trait Implementations
impl RefUnwindSafe for AttributeDesc
impl Send for AttributeDesc
impl Sync for AttributeDesc
impl Unpin for AttributeDesc
impl UnwindSafe for AttributeDesc
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more