Examples
import { BufferType, DrawUsage, createBufferData } from '@wimaengine/render-webgl'
// `gl` is an existing WebGLRenderingContext.
const positions = new Float32Array([0, 0, 0, 1, 0, 0, 0, 1, 0])
const vertexBuffer = createBufferData(
gl,
BufferType.Array,
positions,
DrawUsage.Static
)
// `vertexBuffer` is still bound to BufferType.Array on `gl`.