Under windows, WebGL makes use of DirectX Runtime or OpenGL runtime?

99封情书 提交于 2019-12-01 02:05:13

问题


Under windows, there are two main 3D libraries. I am wondering WebGL use which? is it configurable? Is it configurable per browser?


回答1:


Google Chrome and Firefox will by default make use of ANGLE wrapper to convert OpenGL API calls to Direct3D 9.0 (to achieve better compatibility with most hardware). Users can change this default behavior but it seems to be very inconvenient to override this (currently it's not possible to change this settings programatically).

All other major browsers (on windows) will use OpenGL.




回答2:


I am wondering WebGL use which?

Depends on the browser and the OS.

is it configurable?

Depends on the browser.

Is it configurable per browser?

You mean JavaScript? No.

But why do you care?

Chrome and Firefox use ANGLE so that they work out of the box on a Windows system with only the default drivers supplied by Microsoft installed. For a proper OpenGL implementation installed the user needs to have downloaded and installed the original drivers from the HW vendor. If not, all you get is a rather crappy OpenGL-1.4 implementation/emulation built upon Direct3D 9.



来源:https://stackoverflow.com/questions/8867040/under-windows-webgl-makes-use-of-directx-runtime-or-opengl-runtime

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!