Struct naga::back::msl::AttributeMapping
source · 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: u32
Shader location associated with this attribute
offset: u32
Offset in bytes from start of vertex buffer structure
format: VertexFormat
Format 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§fn eq(&self, other: &AttributeMapping) -> bool
fn eq(&self, other: &AttributeMapping) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AttributeMapping
impl Serialize for AttributeMapping
impl Eq for AttributeMapping
impl StructuralEq for AttributeMapping
impl StructuralPartialEq for AttributeMapping
Auto Trait Implementations§
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
§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.