We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

WebGLRenderingContext.deleteProgram()

这篇翻译不完整。请帮忙从英语翻译这篇文章

WebGLRenderingContext.deleteProgram() 用于删除一个 WebGLProgram 对象. 如果该WebGLProgram 对象已经被删除,该方法不会产生任何作用

语法

void gl.deleteProgram(program);

参数

program
需要被删除的 WebGLProgram 对象

返回值

None.

示例

删除一个程序

var canvas = document.getElementById('canvas');
var gl = canvas.getContext('webgl');
var program = gl.createProgram();

// ...

gl.deleteProgram(program);

规范

规格 状态 解释
WebGL 1.0
deleteProgram
Recommendation Initial definition.
OpenGL ES 2.0
glDeleteProgram
Standard Man page of the (similar) OpenGL API.

浏览器支持

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support912411125.1
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support Yes25 Yes Yes128.1 Yes

其他相关

文档标签和贡献者

此页面的贡献者: hi-zhaolei
最后编辑者: hi-zhaolei,