[−][src]Enum wgpu::VertexFormat
Vertex Format for a Vertex Attribute (input).
Variants
Two unsigned bytes (u8). uvec2 in shaders.
Four unsigned bytes (u8). uvec4 in shaders.
Two signed bytes (i8). ivec2 in shaders.
Four signed bytes (i8). ivec4 in shaders.
Two unsigned bytes (u8). [0, 255] converted to float [0, 1] vec2 in shaders.
Four unsigned bytes (u8). [0, 255] converted to float [0, 1] vec4 in shaders.
Two signed bytes (i8). [-127, 127] converted to float [-1, 1] vec2 in shaders.
Four signed bytes (i8). [-127, 127] converted to float [-1, 1] vec4 in shaders.
Two unsigned shorts (u16). uvec2 in shaders.
Four unsigned shorts (u16). uvec4 in shaders.
Two signed shorts (i16). ivec2 in shaders.
Four signed shorts (i16). ivec4 in shaders.
Two unsigned shorts (u16). [0, 65535] converted to float [0, 1] vec2 in shaders.
Four unsigned shorts (u16). [0, 65535] converted to float [0, 1] vec4 in shaders.
Two signed shorts (i16). [-32767, 32767] converted to float [-1, 1] vec2 in shaders.
Four signed shorts (i16). [-32767, 32767] converted to float [-1, 1] vec4 in shaders.
Two half-precision floats (no Rust equiv). vec2 in shaders.
Four half-precision floats (no Rust equiv). vec4 in shaders.
One single-precision float (f32). float in shaders.
Two single-precision floats (f32). vec2 in shaders.
Three single-precision floats (f32). vec3 in shaders.
Four single-precision floats (f32). vec4 in shaders.
One unsigned int (u32). uint in shaders.
Two unsigned ints (u32). uvec2 in shaders.
Three unsigned ints (u32). uvec3 in shaders.
Four unsigned ints (u32). uvec4 in shaders.
One signed int (i32). int in shaders.
Two signed ints (i32). ivec2 in shaders.
Three signed ints (i32). ivec3 in shaders.
Four signed ints (i32). ivec4 in shaders.
Implementations
impl VertexFormat[src]
Trait Implementations
impl Clone for VertexFormat[src]
fn clone(&self) -> VertexFormat[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for VertexFormat[src]
impl Debug for VertexFormat[src]
impl Eq for VertexFormat[src]
impl Hash for VertexFormat[src]
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher, [src]
__H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl PartialEq<VertexFormat> for VertexFormat[src]
fn eq(&self, other: &VertexFormat) -> bool[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl StructuralEq for VertexFormat[src]
impl StructuralPartialEq for VertexFormat[src]
Auto Trait Implementations
impl RefUnwindSafe for VertexFormat
impl Send for VertexFormat
impl Sync for VertexFormat
impl Unpin for VertexFormat
impl UnwindSafe for VertexFormat
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
fn instrument(self, span: Span) -> Instrumented<Self>[src]
fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,