Expand Minimize

uniform2i method

Assigns two dimensional integer value to a uniform variable for the current program object.

IE11

Syntax

WebGLRenderingContext.uniform2i(location, x, y);

Parameters

location [in]

Type: WebGLUniformLocation

The location of the uniform variable to be updated.

x [in]

Type: Number

Horizontal value to assign.

y [in]

Type: Number

Vertical value to assign.

Return value

This method does not return a value.

Remarks

WebGL errorDescription
gl.INVALID_OPERATION
  • The location doesn't belong to the current program.
  • There is no current program object.
  • If location is an invalid location for the current program object and location isn't equal to -1.

 

See also

WebGLRenderingContext

 

 

Show:
© 2014 Microsoft