low-level utility layer for WebGL