export const asNativeType = (type: GLType | Type): Type => {
    const t = GL2TYPE[<GLType>type];
    return t !== undefined ? t : <Type>type;
};