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: 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
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 VertexAttribute
impl Send for VertexAttribute
impl Sync for VertexAttribute
impl Unpin for VertexAttribute
impl UnwindSafe for VertexAttribute
Blanket Implementations
Mutably borrows from an owned value. Read more