ANGLE (software)

ANGLE
Developer(s) Google
Repository Edit this at Wikidata
Written in C++
Platform Cross-platform
Type Graphics engine
License BSD 3-Clause License
Website angleproject.org

ANGLE (Almost Native Graphics Layer Engine) is an open source, BSD-licensed graphics engine abstraction layer developed by Google.[1] The API is mainly designed to bring high-performance OpenGL compatibility to Windows computers and to web browsers such as Chromium by translating OpenGL calls to Direct3D, which has much better driver support.[2][3][4] There are two backend renderers for ANGLE: the oldest one uses Direct3D 9.0c, while the newer one uses Direct3D 11.[5]

ANGLE is currently used by Google Chrome, Firefox,[6] and the Qt Framework.[7] The engine is also used by Windows 10 for compatibility with apps ported from Android.[8]

History

The project started as a way for Google to bring full hardware acceleration for WebGL to Windows without relying on OpenGL graphics drivers. Google initially released the program under the BSD license.[9]

The current production version (1.0.x) implements OpenGL ES 2.0 and EGL 1.4, claiming to pass the conformance tests for both. Work has started on the future OpenGL ES 3.0 version,[5] for the newer Direct3D 11 backend.[10]

The capability to use ANGLE in a Windows Store app was added in 2014.[8] Supporting CoreWindow and SwapChainPanel in ANGLE's EGL allows applications to run on Windows 8.1, Windows Phone 8.1, and later.[11]

Level of OpenGL ES support via backing renderers

Direct3D 9Direct3D 11Desktop GLGL ESVulkanMetal
OpenGL ES 2.0completecompletecompletecompletein progressnot started
OpenGL ES 3.0completecompletein progressnot startednot started
OpenGL ES 3.1not startedin progressin progressnot startednot started

Issues

ANGLE is based on transpiling technology, translating GLSL into HLSL. This causes some differences in the way expressions are evaluated, in addition to differences in preconditions for equivalent built-in functions in GLSL vs HLSL, plus specific transpiling bugs added to GLSL/HLSL optimizer and compiler bugs. This, with the fact that different browsers rely on different version of Direct3D having different bugs induces many differences of code behavior that can cause WebGL shaders to produce different results depending on the OS and the browser (and the drivers). Many are documented.[12]

Beside transpilation to other shading languages, ANGLE also applies various GLSL code modifications (even in OpenGL systems like Linux or MacOS) to avoid known issues on some drivers and compilers. A series of turnarounds is available, each being activated or not depending on the browser, browser version, and on the result of sanity checks at browser launch. But these turnarounds have impacts on performances, and also have bugs.

Software utilizing ANGLE

ANGLE is currently used in a number of programs and software.

  • Chromium and Google Chrome.[6] Chrome uses ANGLE not only for WebGL, but also for its implementation of the 2D HTML5 canvas and for the graphics layer of the Google Native Client (which is OpenGL ES 2.0 compatible).[5]
  • Firefox uses ANGLE as the default WebGL backend on Windows.[6]
  • Qt 5 uses ANGLE as the default renderer for its OpenGL ES 2.0 API wrapper and other Qt elements which use it on Windows.[7]
  • Candy Crush Saga uses ANGLE as the default renderer in its Windows Store version of the application.[8]
  • Cocos2d uses ANGLE as its rendering engine for applications published to the Windows Store.[8]
  • ANGLE for Windows Store [13] provides Windows developers precompiled ANGLE binaries via a NuGet package.
  • Stellarium provides two versions for Windows: the default version uses OpenGL, the alternative version uses ANGLE as the renderer.[14]
  • Shovel Knight uses ANGLE as rendering engine, as seen in final credits.[15]
  • RuneScape NXT client uses ANGLE to provide a DirectX 9 compatibility mode for older graphics cards.[16]
  • Krita started using ANGLE as the rendering engine on Windows starting on version 3.3.0.[17]
  • Microsoft Edge has ANGLE as a rendering option in the "Standards Preview" page in Windows Insider build 17025.

References

  1. "Google Announces Angle – Almost Native Graphics Layer Engine – so OpenGL ES can run over DirectX 9 – khronos.org news". Khronos.org. 19 March 2010. Retrieved 5 August 2014.
  2. "Google's Angle brings OpenGL to Windows". I-programmer.info. 13 December 2011. Retrieved 5 August 2014.
  3. "Chromium gets GPU acceleration – The H Open: News and Features". H-online.com. 30 August 2010. Retrieved 5 August 2014.
  4. Bridge, Henry (18 March 2010). "Chromium Blog: Introducing the ANGLE Project". Blog.chromium.org. Retrieved 5 August 2014.
  5. 1 2 3 "angleproject – ANGLE: Almost Native Graphics Layer Engine – Google Project Hosting". Code.google.com. 25 March 2014. Retrieved 5 August 2014.
  6. 1 2 3 "(WebGL) How to Enable Native OpenGL in your Browser (Windows)". Geeks3D. Retrieved 5 August 2014.
  7. 1 2 "Graphics on Windows from a different angle | Qt Blog". Qt. Retrieved 5 August 2014.
  8. 1 2 3 4 "ANGLE: Running OpenGL ES 2.0 Graphics Code on Windows". channel9.msdn.com. 30 April 2015.
  9. Shankland, Stephen (25 March 2014). "Google aims for easier 3D Web on Windows – CNET". News.cnet.com. Retrieved 5 August 2014.
  10. https://angleproject.googlecode.com/files/ANGLE%20and%20Cross-Platform%20WebGL%20Support.pdf.
  11. "ANGLE for Windows Store Wiki". Microsoft Corp.
  12. "Compatibility issues in Shadertoy / webGLSL". 22 July 2016.
  13. "ANGLE for Windows Store – NuGet Package". www.nuget.org. 29 May 2015.
  14. "FAQ #2570 : Questions : Stellarium". answers.launchpad.net.
  15. VideoGameCredits (27 June 2014). "Shovel Knight (Credits) (PC)" via YouTube.
  16. Jagex. "Dev Blog - NXT - Can I Run It? - News - RuneScape". services.runescape.com.
  17. Foundation, Krita. "Krita 3.3.0 - Krita". krita.org.
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.