Google chrome chrome中的WEBGL_共享_资源扩展

Google chrome chrome中的WEBGL_共享_资源扩展,google-chrome,webgl,Google Chrome,Webgl,我试图在Chrome58中使用WEBGL\u共享\u资源扩展。 我检查了这个代码是否支持它,我得到了一个错误,所以它不是 <canvas id="myCanvas1" width = "1250" height = "600"></canvas> var Canvas1 = document.getElementById('myCanvas1'); ctx1 = Canvas1.getContext("webgl"); if(ctx1.getEx

我试图在Chrome58中使用
WEBGL\u共享\u资源
扩展。
我检查了这个代码是否支持它,我得到了一个错误,所以它不是

<canvas id="myCanvas1" width = "1250" height = "600"></canvas>

    var Canvas1 = document.getElementById('myCanvas1');
    ctx1 = Canvas1.getContext("webgl");
    if(ctx1.getExtension("WEBGL_shared_resources") == null)
       throw "Shared resources are not supported";

var Canvas1=document.getElementById('myCanvas1');
ctx1=Canvas1.getContext(“webgl”);
if(ctx1.getExtension(“WEBGL_共享_资源”)==null)
抛出“不支持共享资源”;
我的问题是如何添加此扩展?
这取决于浏览器版本吗?操作系统?gpu

只是一个草稿,从未在任何浏览器中实现过

如果您正在寻找一种方式,使其看起来好像您有多个画布共享资源,请参阅以下问答: