[][src]Macro wgpu::vertex_format_size

macro_rules! vertex_format_size {
    (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) => { ... };
}

Helper macro which turns a vertex attribute type into a size.

Mainly used as a helper for vertex_attr_array but might be externally useful.