UNPKG

playcanvas

Version:

Open-source WebGL/WebGPU 3D engine for the web

13 lines (12 loc) 358 B
import { BUFFER_DYNAMIC } from "../constants.js"; import { WebglBuffer } from "./webgl-buffer.js"; class WebglUniformBuffer extends WebglBuffer { unlock(uniformBuffer) { const device = uniformBuffer.device; const gl = device.gl; super.unlock(device, BUFFER_DYNAMIC, gl.UNIFORM_BUFFER, uniformBuffer.storageInt32); } } export { WebglUniformBuffer };