WebGLRenderingContext.getShaderParameter()
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
WebGLRenderingContext.getShaderParameter()
返回给定的着色器信息
语法
js
getShaderParameter(shader, pname)
参数
返回值
返回对应着色器属性信息
例子
js
gl.getShaderParameter(shader, gl.SHADER_TYPE);
规范
Specification |
---|
WebGL Specification # 5.14.9 |
浏览器兼容性
BCD tables only load in the browser