EN
Il contenuto non è disponibile nella lingua di destinazione, ma solo in inglese.

uniform4i method

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

IE11

 

Syntax

WebGLRenderingContext.uniform4i(location, x, y, z, w);

Parameters

location [in]

Type: WebGLUniformLocation

x [in]

Type: Number

Horizontal value to assign.

y [in]

Type: Number

Vertical value to assign.

z [in]

Type: Number

Depth value to assign.

w [in]

Type: Number

Scaling 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 active program.
  • Uniform specified by location isn't an int 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

 

 

Mostra:
© 2014 Microsoft