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