The WebGLRenderingContext.detachShader() method of the WebGL API detaches a previously attached WebGLShader
from a WebGLProgram
.
SyntaxEdit
WebGLShader gl.detachShader(program, shader);
Parameters
program
- A
WebGLProgram
. shader
- A fragment or vertex
WebGLShader
.
SpecificationsEdit
Specification | Status | Comment |
---|---|---|
WebGL 1.0 The definition of 'detachShader' in that specification. |
Recommendation | Initial definition. |
OpenGL ES 2.0 The definition of 'glDetachShader' in that specification. |
Standard | OpenGL man page. |
Browser compatibilityEdit
See alsoEdit
WebGLProgram
WebGLShader
WebGLRenderingContext.attachShader()
WebGLRenderingContext.compileShader()
WebGLRenderingContext.createProgram()
WebGLRenderingContext.createShader()
WebGLRenderingContext.deleteProgram()
WebGLRenderingContext.deleteShader()
WebGLRenderingContext.detachShader()
WebGLRenderingContext.getAttachedShaders()
WebGLRenderingContext.getProgramParameter()
WebGLRenderingContext.getProgramInfoLog()
WebGLRenderingContext.getShaderParameter()
WebGLRenderingContext.getShaderPrecisionFormat()
WebGLRenderingContext.getShaderInfoLog()
WebGLRenderingContext.getShaderSource()
WebGLRenderingContext.isProgram()
WebGLRenderingContext.isShader()
WebGLRenderingContext.linkProgram()
WebGLRenderingContext.shaderSource()
WebGLRenderingContext.useProgram()
WebGLRenderingContext.validateProgram()
Document Tags and Contributors
Tags:
Contributors to this page:
fscholz,
TatumCreative
Last updated by:
fscholz,