Struct wgpu_types::VertexAttribute [−][src]
#[repr(C)]pub struct VertexAttribute { pub format: VertexFormat, pub offset: BufferAddress, pub shader_location: ShaderLocation, }
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: BufferAddress
Byte offset of the start of the input
shader_location: ShaderLocation
Location for this input. Must match the location in the shader.
Trait Implementations
impl Clone for VertexAttribute
[src]
impl Clone for VertexAttribute
[src]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 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]fn eq(&self, other: &VertexAttribute) -> bool
[src]
fn ne(&self, other: &VertexAttribute) -> bool
[src]
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