Expand Minimize

deleteShader method

Deletes a specific shader object.

IE11

 

Syntax

WebGLRenderingContext.deleteShader(shader);

Parameters

shader [in]

Type: WebGLShader

Return value

This method does not return a value.

Remarks

If shader is attached to a program object, it's flagged for deletion until it's no longer attached to the object. A shader needs to be detached with detachShader before it can be deleted.

WebGL errorDescription
gl.INVALID_VALUEIf the shader isn't generated by WebGL.

 

See also

WebGLRenderingContext
createShader

 

 

Show:
© 2014 Microsoft