EN
이 콘텐츠는 한국어로 제공되지 않아 영어 버전으로 표시됩니다.

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

 

 

표시:
© 2014 Microsoft