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

uniform2fv method

Assigns two dimensional floating point vector array to a uniform variable for the current program object.

IE11

 

Syntax

WebGLRenderingContext.uniform2fv(location, value);

Parameters

location [in]

Type: WebGLUniformLocation

The location of the uniform variable to be updated.

value [in]

Type: Float32Array

Floating point array 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 active program.
  • value references a typed array instance other than Float32Array.
  • Uniform specified by location isn't a float type.
gl.INVALID_VALUEThe length of value array isn't a multiple of the number of required components.

 

If the location is null, no uniforms are updated and no error code is generated.

See also

WebGLRenderingContext

 

 

표시:
© 2014 Microsoft