Skip to main content
Module

x/gluten/mod.ts>WebGLRenderingContext#getActiveUniform

OpenGL bindings & WebGL API implementation for Deno.
Go to Latest
method WebGLRenderingContext.prototype.getActiveUniform
import { WebGLRenderingContext } from "https://deno.land/x/gluten@0.1.6/mod.ts";

Returns a new WebGLActiveInfo object describing the size, type and name of the uniform 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