pub enum VertexAttributeFormat {
Float32,
Float32x2,
Float32x3,
Float32x4,
Unorm8x4,
Uint32,
Sint32,
}Expand description
The in-memory layout of one vertex attribute.
Maps to the GPUVertexAttribute.format field. A position of three
f32 is Float32x3; a packed 8-bit-per-channel color is Unorm8x4.
Variants§
Float32
One 32-bit float.
Float32x2
Two 32-bit floats, laid out as an x / y pair.
Float32x3
Three 32-bit floats, laid out as an x / y / z triple.
Float32x4
Four 32-bit floats, laid out as x / y / z / w.
Unorm8x4
Four 8-bit unsigned-normalized channels in one 32-bit word.
Uint32
One 32-bit unsigned integer.
Sint32
One 32-bit signed integer.
Trait Implementations§
Source§impl Clone for VertexAttributeFormat
impl Clone for VertexAttributeFormat
impl Copy for VertexAttributeFormat
Source§impl Debug for VertexAttributeFormat
impl Debug for VertexAttributeFormat
Source§impl Default for VertexAttributeFormat
impl Default for VertexAttributeFormat
impl Eq for VertexAttributeFormat
Source§impl Hash for VertexAttributeFormat
impl Hash for VertexAttributeFormat
Source§impl PartialEq for VertexAttributeFormat
impl PartialEq for VertexAttributeFormat
impl StructuralPartialEq for VertexAttributeFormat
Auto Trait Implementations§
impl Freeze for VertexAttributeFormat
impl RefUnwindSafe for VertexAttributeFormat
impl Send for VertexAttributeFormat
impl Sync for VertexAttributeFormat
impl Unpin for VertexAttributeFormat
impl UnsafeUnpin for VertexAttributeFormat
impl UnwindSafe for VertexAttributeFormat
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