Enum nannou::wgpu::VertexFormat [−]
#[repr(C)] pub enum VertexFormat {}Show variants
Uchar2, Uchar4, Char2, Char4, Uchar2Norm, Uchar4Norm, Char2Norm, Char4Norm, Ushort2, Ushort4, Short2, Short4, Ushort2Norm, Ushort4Norm, Short2Norm, Short4Norm, Half2, Half4, Float, Float2, Float3, Float4, Uint, Uint2, Uint3, Uint4, Int, Int2, Int3, Int4, Double, Double2, Double3, Double4,
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.
One double-precision float (f64). double
in shaders. Requires VERTEX_ATTRIBUTE_64BIT features.
Two double-precision floats (f64). dvec2
in shaders. Requires VERTEX_ATTRIBUTE_64BIT features.
Three double-precision floats (f64). dvec3
in shaders. Requires VERTEX_ATTRIBUTE_64BIT features.
Four double-precision floats (f64). dvec4
in shaders. Requires VERTEX_ATTRIBUTE_64BIT features.
Implementations
impl VertexFormat
Trait Implementations
impl Clone for VertexFormat
pub fn clone(&self) -> VertexFormat
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for VertexFormat
impl Debug for VertexFormat
impl Eq for VertexFormat
impl Hash for VertexFormat
pub fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
__H: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<VertexFormat> for VertexFormat
pub fn eq(&self, other: &VertexFormat) -> bool
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for VertexFormat
impl StructuralPartialEq for VertexFormat
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<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
[src]
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
pub fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
pub fn adapt_into(self) -> D
[src]
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CallHasher for T where
T: Hash,
T: Hash,
impl<T, U> ConvertInto<U> for T where
U: ConvertFrom<T>,
[src]
U: ConvertFrom<T>,
pub fn convert_into(self) -> U
[src]
pub fn convert_unclamped_into(self) -> U
[src]
pub fn try_convert_into(self) -> Result<U, OutOfBounds<U>>
[src]
impl<T> Downcast<T> for T
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub 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> NodeId for T where
T: 'static + Copy + Clone + PartialEq<T> + Eq + Hash + Send,
[src]
T: 'static + Copy + Clone + PartialEq<T> + Eq + Hash + Send,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> SetParameter for T
pub fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T> Style for T where
T: Any + Debug + PartialEq<T>,
[src]
T: Any + Debug + PartialEq<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Upcast<T> for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,