rendy_mesh

Trait AsAttribute

Source
pub trait AsAttribute:
    Debug
    + PartialEq
    + PartialOrd
    + Copy
    + Send
    + Sync
    + 'static {
    const NAME: &'static str;
    const FORMAT: Format;
}
Expand description

Trait for vertex attributes to implement

Required Associated Constants§

Source

const NAME: &'static str

Name of the attribute

Source

const FORMAT: Format

Attribute format.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl AsAttribute for Color

Source§

const NAME: &'static str = "color"

Source§

const FORMAT: Format = Format::Rgba32Sfloat

Source§

impl AsAttribute for Normal

Source§

const NAME: &'static str = "normal"

Source§

const FORMAT: Format = Format::Rgb32Sfloat

Source§

impl AsAttribute for Position

Source§

const NAME: &'static str = "position"

Source§

const FORMAT: Format = Format::Rgb32Sfloat

Source§

impl AsAttribute for Tangent

Source§

const NAME: &'static str = "tangent"

Source§

const FORMAT: Format = Format::Rgba32Sfloat

Source§

impl AsAttribute for TexCoord

Source§

const NAME: &'static str = "tex_coord"

Source§

const FORMAT: Format = Format::Rg32Sfloat