Struct wgpu::VertexAttribute [−][src]
#[repr(C)]pub struct VertexAttribute { pub format: VertexFormat, pub offset: u64, pub shader_location: u32, }
Vertex inputs (attributes) to shaders.
Arrays of these can be made with the vertex_attr_array
macro. Vertex attributes are assumed to be tightly packed.
Fields
format: VertexFormat
Format of the input
offset: u64
Byte offset of the start of the input
shader_location: u32
Location for this input. Must match the location in the shader.
Trait Implementations
impl Clone for VertexAttribute
[src]
impl Clone for VertexAttribute
[src]pub fn clone(&self) -> VertexAttribute
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for VertexAttribute
[src]
impl Copy for VertexAttribute
[src]impl Debug for VertexAttribute
[src]
impl Debug for VertexAttribute
[src]impl<'de> Deserialize<'de> for VertexAttribute
[src]
impl<'de> Deserialize<'de> for VertexAttribute
[src]pub fn deserialize<__D>(
__deserializer: __D
) -> Result<VertexAttribute, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<VertexAttribute, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl Eq for VertexAttribute
[src]
impl Eq for VertexAttribute
[src]impl Hash for VertexAttribute
[src]
impl Hash for VertexAttribute
[src]impl PartialEq<VertexAttribute> for VertexAttribute
[src]
impl PartialEq<VertexAttribute> for VertexAttribute
[src]pub fn eq(&self, other: &VertexAttribute) -> bool
[src]
pub fn ne(&self, other: &VertexAttribute) -> bool
[src]
impl Serialize for VertexAttribute
[src]
impl Serialize for VertexAttribute
[src]pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl StructuralEq for VertexAttribute
[src]
impl StructuralEq for VertexAttribute
[src]impl StructuralPartialEq for VertexAttribute
[src]
impl StructuralPartialEq for VertexAttribute
[src]Auto Trait Implementations
impl RefUnwindSafe for VertexAttribute
impl RefUnwindSafe for VertexAttribute
impl Send for VertexAttribute
impl Send for VertexAttribute
impl Sync for VertexAttribute
impl Sync for VertexAttribute
impl Unpin for VertexAttribute
impl Unpin for VertexAttribute
impl UnwindSafe for VertexAttribute
impl UnwindSafe for VertexAttribute
Blanket Implementations
impl<T> CallHasher for T where
T: Hash,
impl<T> CallHasher for T where
T: Hash,
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]