只读 WebGLActiveInfo.type property represents the type of the requested data returned by calling the getActiveAttrib() or getActiveUniform() 方法。

范例

var activeAttrib = gl.getActiveAttrib(program, index);
activeAttrib.type;
var activeUniform = gl.getActiveUniform(program, index);
activeUniform.type;
					

规范

规范 状态 注释
WebGL 1.0
The definition of 'WebGLActiveInfo.type' in that specification.
推荐 初始定义。

浏览器兼容性

更新 GitHub 上的兼容性数据
桌面 移动
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
type Chrome 9 Edge 12 Firefox 4 IE 11 Opera 12 Safari 5.1 WebView Android Yes Chrome Android 25 Firefox Android Yes Opera Android 12 Safari iOS 8 Samsung Internet Android 1.5

图例

完整支持

完整支持

另请参阅

元数据

  • 最后修改: