interface AttributeDescription {
    asInt?: boolean;
    components: number;
    normalize?: boolean;
    semantic: string;
    type: number;
}

Properties

asInt?: boolean

If true, vertex attribute data will be accessible as integer numbers in shader code. Defaults to false, which means that vertex attribute data will be accessible as floating point numbers. Can be only used with INT and UINT data types.

components: number

The number of components of the vertex attribute. Can be 1, 2, 3 or 4.

normalize?: boolean

If true, vertex attribute data will be mapped from a 0 to 255 range down to 0 to 1 when fed to a shader. If false, vertex attribute data is left unchanged. If this property is unspecified, false is assumed. This property is ignored when asInt is true.

semantic: string

The meaning of the vertex element. This is used to link the vertex data to a shader input. Can be:

If vertex data has a meaning other that one of those listed above, use the user-defined semantics: SEMANTIC_ATTR0 to SEMANTIC_ATTR15.

type: number