pub struct VertexElement {
pub semantic: String,
pub stream: i32,
pub offset: i32,
pub usage: i32,
pub usage_index: i32,
pub format: i32,
}Expand description
One attribute of a vertex layout.
Fields§
§semantic: StringThe semantic, for example POSITION.
stream: i32The vertex stream.
offset: i32The offset in the vertex, in bytes.
usage: i32The usage.
usage_index: i32The usage index.
format: i320 float4, 1 float3, 2 float2, 3 float1, 4 sint16x4, 5 sint16x2, 6 bgra8unorm, 7 uint8x4, 8 unorm8x4 (VideoDX11 DXGI table).
Trait Implementations§
Source§impl Clone for VertexElement
impl Clone for VertexElement
Source§fn clone(&self) -> VertexElement
fn clone(&self) -> VertexElement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for VertexElement
impl RefUnwindSafe for VertexElement
impl Send for VertexElement
impl Sync for VertexElement
impl Unpin for VertexElement
impl UnsafeUnpin for VertexElement
impl UnwindSafe for VertexElement
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