Struct naga::back::msl::VertexBufferMapping
source · pub struct VertexBufferMapping {
pub id: u32,
pub stride: u32,
pub indexed_by_vertex: bool,
pub attributes: Vec<AttributeMapping>,
}
Expand description
A description of a vertex buffer with all the information we need to address the attributes within it.
Fields§
§id: u32
Shader location associated with this buffer
stride: u32
Size of the structure in bytes
indexed_by_vertex: bool
True if the buffer is indexed by vertex, false if indexed by instance.
attributes: Vec<AttributeMapping>
Vec of the attributes within the structure
Trait Implementations§
source§impl Clone for VertexBufferMapping
impl Clone for VertexBufferMapping
source§fn clone(&self) -> VertexBufferMapping
fn clone(&self) -> VertexBufferMapping
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 VertexBufferMapping
impl Debug for VertexBufferMapping
source§impl Default for VertexBufferMapping
impl Default for VertexBufferMapping
source§fn default() -> VertexBufferMapping
fn default() -> VertexBufferMapping
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for VertexBufferMapping
impl<'de> Deserialize<'de> for VertexBufferMapping
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 VertexBufferMapping
impl Hash for VertexBufferMapping
source§impl PartialEq for VertexBufferMapping
impl PartialEq for VertexBufferMapping
source§fn eq(&self, other: &VertexBufferMapping) -> bool
fn eq(&self, other: &VertexBufferMapping) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for VertexBufferMapping
impl Serialize for VertexBufferMapping
impl Eq for VertexBufferMapping
impl StructuralEq for VertexBufferMapping
impl StructuralPartialEq for VertexBufferMapping
Auto Trait Implementations§
impl RefUnwindSafe for VertexBufferMapping
impl Send for VertexBufferMapping
impl Sync for VertexBufferMapping
impl Unpin for VertexBufferMapping
impl UnwindSafe for VertexBufferMapping
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.