Syntax
void gl.deleteShader(shader);
参数
- shader
- 需要被删除的
WebGLShader
对象
返回值
None.
示例
删除一个着色器
gl.deleteShader(shader);
规范
规格 | 状态 | 解释 |
---|---|---|
WebGL 1.0 deleteShader |
Recommendation | Initial definition. |
OpenGL ES 2.0 glDeleteShader |
Standard | Man page of the (similar) OpenGL API. |
浏览器兼容性
BCD tables only load in the browser
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.