Skip to main content
Module

x/gluten/mod.ts>WebGLRenderingContext#getUniformLocation

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

Return a new WebGLUniformLocation that represents the location of a specific uniform variable within a program object. The return value is null if name does not correspond to an active uniform variable in the passed program.

Parameters

program: WebGLProgram
name: string