Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/caviar/src/renderers/webgl/util.ts>setBuffer

⚡ Blazing fast, modern, Game Engine powered by WebGPU for Deno and the browser
Latest
function setBuffer
import { setBuffer } from "https://deno.land/x/caviar@2.6.9/src/renderers/webgl/util.ts";

Parameters

buffer: WebGLBuffer
location: number
numComponents: number
optional
type: number = [UNSUPPORTED]
optional
target: number = [UNSUPPORTED]
optional
normalize = [UNSUPPORTED]
optional
stride = [UNSUPPORTED]
optional
offset = [UNSUPPORTED]