pub unsafe trait VertexAttributePrimitive {
    const SIZE: usize;
    const ROWS: usize;
    const TYPE: AttributeType;
}
Expand description

§Safety

Don’t implement yourself

Required Associated Constants§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl VertexAttributePrimitive for f32

source§

const SIZE: usize = 1usize

source§

const ROWS: usize = 1usize

source§

const TYPE: AttributeType = AttributeType::Float

source§

impl VertexAttributePrimitive for [f32; 2]

source§

const SIZE: usize = 2usize

source§

const ROWS: usize = 1usize

source§

const TYPE: AttributeType = AttributeType::Float

source§

impl VertexAttributePrimitive for [f32; 3]

source§

const SIZE: usize = 3usize

source§

const ROWS: usize = 1usize

source§

const TYPE: AttributeType = AttributeType::Float

source§

impl VertexAttributePrimitive for [f32; 4]

source§

const SIZE: usize = 4usize

source§

const ROWS: usize = 1usize

source§

const TYPE: AttributeType = AttributeType::Float

source§

impl VertexAttributePrimitive for [[f32; 3]; 3]

source§

const SIZE: usize = 3usize

source§

const ROWS: usize = 3usize

source§

const TYPE: AttributeType = AttributeType::Float

source§

impl VertexAttributePrimitive for [[f32; 4]; 4]

source§

const SIZE: usize = 4usize

source§

const ROWS: usize = 4usize

source§

const TYPE: AttributeType = AttributeType::Float

Implementors§