Firefox Tomorrow

web api instance method

WebGLRenderingContext: deleteShader() method

View on MDN ↗

Available in workers

The WebGLRenderingContext.deleteShader() method of the WebGL API marks a given WebGLShader object for deletion. It will then be deleted whenever the shader is no longer in use. This method has no effect if the shader has already been deleted, and the WebGLShader is automatically marked for deletion when it is destroyed by the garbage collector.

Syntax

deleteShader(shader)

Parameters

Return value

None (undefined).

Examples

Deleting a shader

gl.deleteShader(shader);

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.

See also