Skip to main content
Module

x/caviar/deps.ts>WebGLRenderingContext#getActiveAttrib

⚡ Blazing fast, modern, Game Engine powered by WebGPU for Deno and the browser
Latest
method WebGLRenderingContext.prototype.getActiveAttrib
import { WebGLRenderingContext } from "https://deno.land/x/caviar@2.6.7/deps.ts";

Returns a new WebGLActiveInfo object describing the size, type and name of the vertex attribute at the passed index of the passed program object. If the passed index is out of range, generates an INVALID_VALUE error and returns null. Returns null if any OpenGL errors are generated during the execution of this function.

Parameters

program: WebGLProgram
index: number