未验证 提交 8af1f20d 编写于 作者: M Michael Herzog 提交者: GitHub

Merge pull request #17758 from hsimpson/WebGL2ComputeRenderingContext

WebGLCapabilities: Add support for WebGL2ComputeRenderingContext.
......@@ -56,7 +56,10 @@ function WebGLCapabilities( gl, extensions, parameters ) {
}
var isWebGL2 = typeof WebGL2RenderingContext !== 'undefined' && gl instanceof WebGL2RenderingContext;
/* eslint-disable no-undef */
var isWebGL2 = ( typeof WebGL2RenderingContext !== 'undefined' && gl instanceof WebGL2RenderingContext ) ||
( typeof WebGL2ComputeRenderingContext !== 'undefined' && gl instanceof WebGL2ComputeRenderingContext );
/* eslint-enable no-undef */
var precision = parameters.precision !== undefined ? parameters.precision : 'highp';
var maxPrecision = getMaxPrecision( precision );
......
......@@ -5,4 +5,5 @@ var exports;
var performance;
var createImageBitmap;
var WebGL2RenderingContext;
var WebGL2ComputeRenderingContext;
var XRWebGLLayer;
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册