Struct wgpu_types::VertexAttribute [−][src]
#[repr(C)]pub struct VertexAttribute { pub format: VertexFormat, pub offset: BufferAddress, pub shader_location: ShaderLocation, }
Expand description
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: VertexFormatFormat of the input
offset: BufferAddressByte offset of the start of the input
shader_location: ShaderLocationLocation for this input. Must match the location in the shader.
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for VertexAttributeimpl Send for VertexAttributeimpl Sync for VertexAttributeimpl Unpin for VertexAttributeimpl UnwindSafe for VertexAttributeBlanket Implementations
Mutably borrows from an owned value. Read more