Enum bevy::render::mesh::VertexAttributeValues [−]
pub enum VertexAttributeValues {
Show 28 variants
Float32(Vec<f32, Global>),
Sint32(Vec<i32, Global>),
Uint32(Vec<u32, Global>),
Float32x2(Vec<[f32; 2], Global>),
Sint32x2(Vec<[i32; 2], Global>),
Uint32x2(Vec<[u32; 2], Global>),
Float32x3(Vec<[f32; 3], Global>),
Sint32x3(Vec<[i32; 3], Global>),
Uint32x3(Vec<[u32; 3], Global>),
Float32x4(Vec<[f32; 4], Global>),
Sint32x4(Vec<[i32; 4], Global>),
Uint32x4(Vec<[u32; 4], Global>),
Sint16x2(Vec<[i16; 2], Global>),
Snorm16x2(Vec<[i16; 2], Global>),
Uint16x2(Vec<[u16; 2], Global>),
Unorm16x2(Vec<[u16; 2], Global>),
Sint16x4(Vec<[i16; 4], Global>),
Snorm16x4(Vec<[i16; 4], Global>),
Uint16x4(Vec<[u16; 4], Global>),
Unorm16x4(Vec<[u16; 4], Global>),
Sint8x2(Vec<[i8; 2], Global>),
Snorm8x2(Vec<[i8; 2], Global>),
Uint8x2(Vec<[u8; 2], Global>),
Unorm8x2(Vec<[u8; 2], Global>),
Sint8x4(Vec<[i8; 4], Global>),
Snorm8x4(Vec<[i8; 4], Global>),
Uint8x4(Vec<[u8; 4], Global>),
Unorm8x4(Vec<[u8; 4], Global>),
}
Expand description
Contains an array where each entry describes a property of a single vertex.
Matches the VertexFormats
.
Variants
Float32(Vec<f32, Global>)
Sint32(Vec<i32, Global>)
Uint32(Vec<u32, Global>)
Float32x2(Vec<[f32; 2], Global>)
Sint32x2(Vec<[i32; 2], Global>)
Uint32x2(Vec<[u32; 2], Global>)
Float32x3(Vec<[f32; 3], Global>)
Sint32x3(Vec<[i32; 3], Global>)
Uint32x3(Vec<[u32; 3], Global>)
Float32x4(Vec<[f32; 4], Global>)
Sint32x4(Vec<[i32; 4], Global>)
Uint32x4(Vec<[u32; 4], Global>)
Sint16x2(Vec<[i16; 2], Global>)
Snorm16x2(Vec<[i16; 2], Global>)
Uint16x2(Vec<[u16; 2], Global>)
Unorm16x2(Vec<[u16; 2], Global>)
Sint16x4(Vec<[i16; 4], Global>)
Snorm16x4(Vec<[i16; 4], Global>)
Uint16x4(Vec<[u16; 4], Global>)
Unorm16x4(Vec<[u16; 4], Global>)
Sint8x2(Vec<[i8; 2], Global>)
Snorm8x2(Vec<[i8; 2], Global>)
Uint8x2(Vec<[u8; 2], Global>)
Unorm8x2(Vec<[u8; 2], Global>)
Sint8x4(Vec<[i8; 4], Global>)
Snorm8x4(Vec<[i8; 4], Global>)
Uint8x4(Vec<[u8; 4], Global>)
Unorm8x4(Vec<[u8; 4], Global>)
Implementations
Returns the number of vertices in this VertexAttribute. For a single mesh, all of the VertexAttributeValues must have the same length.
Trait Implementations
impl Clone for VertexAttributeValues
impl Clone for VertexAttributeValues
pub fn clone(&self) -> VertexAttributeValues
pub fn clone(&self) -> VertexAttributeValues
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl Debug for VertexAttributeValues
impl Debug for VertexAttributeValues
impl EnumVariantMeta for VertexAttributeValues
impl EnumVariantMeta for VertexAttributeValues
pub fn enum_variant_index(&self) -> usize
pub fn enum_variant_name(&self) -> &'static str
impl<'_> From<&'_ VertexAttributeValues> for VertexFormat
impl<'_> From<&'_ VertexAttributeValues> for VertexFormat
pub fn from(values: &VertexAttributeValues) -> VertexFormat
pub fn from(values: &VertexAttributeValues) -> VertexFormat
Performs the conversion.
impl From<Vec<f32, Global>> for VertexAttributeValues
impl From<Vec<f32, Global>> for VertexAttributeValues
pub fn from(vec: Vec<f32, Global>) -> VertexAttributeValues
pub fn from(vec: Vec<f32, Global>) -> VertexAttributeValues
Performs the conversion.
impl From<Vec<i32, Global>> for VertexAttributeValues
impl From<Vec<i32, Global>> for VertexAttributeValues
pub fn from(vec: Vec<i32, Global>) -> VertexAttributeValues
pub fn from(vec: Vec<i32, Global>) -> VertexAttributeValues
Performs the conversion.
impl From<Vec<u32, Global>> for VertexAttributeValues
impl From<Vec<u32, Global>> for VertexAttributeValues
pub fn from(vec: Vec<u32, Global>) -> VertexAttributeValues
pub fn from(vec: Vec<u32, Global>) -> VertexAttributeValues
Performs the conversion.
impl TryFrom<VertexAttributeValues> for Vec<u32, Global>
impl TryFrom<VertexAttributeValues> for Vec<u32, Global>
impl TryFrom<VertexAttributeValues> for Vec<i32, Global>
impl TryFrom<VertexAttributeValues> for Vec<i32, Global>
impl TryFrom<VertexAttributeValues> for Vec<f32, Global>
impl TryFrom<VertexAttributeValues> for Vec<f32, Global>
Auto Trait Implementations
impl RefUnwindSafe for VertexAttributeValues
impl Send for VertexAttributeValues
impl Sync for VertexAttributeValues
impl Unpin for VertexAttributeValues
impl UnwindSafe for VertexAttributeValues
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
pub fn clone_type_data(&self) -> Box<dyn TypeData + 'static, Global>ⓘ
pub fn vzip(self) -> V
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
fn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
fn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more