A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getFragDataLocation below:

WebGL2RenderingContext: getFragDataLocation() method - Web APIs

WebGL2RenderingContext: getFragDataLocation() method

Baseline Widely available

Note: This feature is available in Web Workers.

The WebGL2RenderingContext.getFragDataLocation() method of the WebGL 2 API returns the binding of color numbers to user-defined varying out variables.

Syntax
getFragDataLocation(program, name)
Parameters
program

A WebGLProgram to query.

name

A string specifying the name of the user-defined varying out variable.

Return value

A GLint indicating the assigned color number binding, or -1 otherwise.

Examples
// program is a linked WebGLProgram

gl.getFragDataLocation(program, "fragColor");
Specifications Browser compatibility See also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.3