pub struct AttributeMapping {
    pub shader_location: u32,
    pub offset: u32,
    pub format: VertexFormat,
}Expand description
A mapping of vertex buffers and their attributes to shader locations.
Fields§
§shader_location: u32Shader location associated with this attribute
offset: u32Offset in bytes from start of vertex buffer structure
format: VertexFormatFormat code to help us unpack the attribute into the type used by the shader. Codes correspond to a 0-based index of https://gpuweb.github.io/gpuweb/#enumdef-gpuvertexformat. The conversion process is described by https://gpuweb.github.io/gpuweb/#vertex-processing.
Trait Implementations§
Source§impl Clone for AttributeMapping
 
impl Clone for AttributeMapping
Source§fn clone(&self) -> AttributeMapping
 
fn clone(&self) -> AttributeMapping
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Debug for AttributeMapping
 
impl Debug for AttributeMapping
Source§impl<'de> Deserialize<'de> for AttributeMapping
 
impl<'de> Deserialize<'de> for AttributeMapping
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for AttributeMapping
 
impl Hash for AttributeMapping
Source§impl PartialEq for AttributeMapping
 
impl PartialEq for AttributeMapping
Source§impl Serialize for AttributeMapping
 
impl Serialize for AttributeMapping
impl Eq for AttributeMapping
impl StructuralPartialEq for AttributeMapping
Auto Trait Implementations§
impl Freeze for AttributeMapping
impl RefUnwindSafe for AttributeMapping
impl Send for AttributeMapping
impl Sync for AttributeMapping
impl Unpin for AttributeMapping
impl UnwindSafe for AttributeMapping
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more