A conformant OpenGL ES implementation for Windows, Mac and Linux.
Перейти к файлу
Jamie Madill f939cb63fd Revert "Reland "Add more test_utils functions.""
This reverts commit 7923e234bc.

Reason for revert: Fails compilation on rollers:

    [2097/6048] SOLINK ./lib_angle_unittests__library.cr.so
    FAILED: lib_angle_unittests__library.cr.so lib_angle_unittests__library.cr.so.TOC lib.unstripped/lib_angle_unittests__library.cr.so
    python "../../build/toolchain/gcc_solink_wrapper.py" --readelf="../../third_party/android_ndk/toolch...(too long)
    ld.lld: error: undefined symbol: glCreateShader
    >>> referenced by shader_utils.cpp
    >>>               angle_util_static/shader_utils.o:(CompileShader(unsigned int, char const*)) in archive obj/third_party/angle/libangle_util_static.a
    
    ld.lld: error: undefined symbol: glShaderSource

Original change's description:
> Reland "Add more test_utils functions."
> 
> This is a reland of 5fcfcea4a9
> 
> Re-land uses static linking with angle_util. The root cause
> of the CFI error wasn't solved. Static linking works around
> the problem by not using any export rules.
> 
> Original change's description:
> > Add more test_utils functions.
> >
> > Includes methods for creating temporary files, deleting files, and
> > reading files into a string. Also renames GetPathSeparator to mention
> > it's only used for environment variables. Includes a new virtual type
> > angle::Process that will be used to implement cross-platform async
> > Process launching for tests. Also includes a way to specify a custom
> > crash handler callback.
> >
> > Also adds a few unit tests for the new functionality. They are disabled
> > on Android because the functions are not needed by the new test runner.
> >
> > Bug: angleproject:3162
> > Change-Id: I3e2c2e9837608884c98379fa0f78c9ffbe158d73
> > Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1821940
> > Commit-Queue: Jamie Madill <jmadill@chromium.org>
> > Reviewed-by: Jonah Ryan-Davis <jonahr@google.com>
> 
> Bug: chromium:1015810
> Bug: angleproject:3162
> Change-Id: I6a2c1e7b585a13ca846759f32da0777c00d7f7e6
> Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1869541
> Commit-Queue: Jamie Madill <jmadill@chromium.org>
> Reviewed-by: Jamie Madill <jmadill@chromium.org>

TBR=ynovikov@chromium.org,jonahr@google.com,jmadill@chromium.org

Change-Id: I975b2214411906cb981bffa04fa50e0a65ff8b4e
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: chromium:1015810, angleproject:3162
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1870811
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Commit-Queue: Jamie Madill <jmadill@chromium.org>
2019-10-20 21:44:47 +00:00
android Reland "Vulkan: Use VK repos' internal BUILD.gn files" 2019-10-01 21:51:34 +00:00
build_overrides GN: Allow building without /build/ folder. 2019-10-04 21:10:54 +00:00
doc Documentation maintenance. 2019-10-07 19:55:43 +00:00
extensions Extend ANGLE_request_extension with DisableExtension 2019-10-12 00:42:21 +00:00
gni Vulkan: Re-enable release ASSERTs. 2019-10-17 01:22:35 +00:00
include Fix ANGLE_FEATURE_CONDITION style issue 2019-10-16 22:32:04 +00:00
infra [infra/config] Add cache for XCode on the mac builders 2019-08-09 13:06:34 +00:00
samples Rename util/system_utils to util/test_utils. 2019-09-27 21:47:21 +00:00
scripts Vulkan: Rename format fields. 2019-10-20 17:21:55 +00:00
src Revert "Reland "Add more test_utils functions."" 2019-10-20 21:44:47 +00:00
third_party Fix building libpng on arm CPUs. 2019-10-17 19:36:55 +00:00
tools/glslang Update glslang_validator binary for Windows. 2019-06-14 16:13:16 +00:00
util Revert "Reland "Add more test_utils functions."" 2019-10-20 21:44:47 +00:00
.clang-format Add script to apply clang-format on all sources 2019-07-19 20:10:28 +00:00
.gitattributes Use separate json files for each code generator. 2019-07-11 20:17:04 +00:00
.gitignore Checkout GLES 1.1 conformance from DEPS. 2019-10-10 21:31:20 +00:00
.gn angle: Stop setting secondary_source. 2019-05-13 13:42:57 +00:00
.style.yapf Format all of ANGLE's python code. 2019-05-06 18:56:09 +00:00
.yapfignore Add .yapfignore file 2019-10-14 17:57:09 +00:00
AUTHORS Added PVRTC compression extension needed for Metal on iOS. 2019-10-10 15:17:38 +00:00
BUILD.gn Make invalid extension directive a CHROMEOS warning 2019-10-17 19:38:23 +00:00
CONTRIBUTORS Add D3D11on12 device option 2019-10-10 02:07:39 +00:00
DEPS Roll third_party/glslang/src a959deb00750..834ee546f93d (1 commits) 2019-10-18 07:59:41 +00:00
LICENSE Update license and readme for use downstream 2018-03-27 20:53:53 +00:00
OWNERS Add COMPONENT and TEAM information in OWNERS file 2019-10-09 00:27:15 +00:00
PRESUBMIT.py Correct presubmit error for missing Bug ID 2019-10-10 19:11:05 +00:00
README.chromium Update license and readme for use downstream 2018-03-27 20:53:53 +00:00
README.md Documentation maintenance. 2019-10-07 19:55:43 +00:00
WATCHLISTS Add watchlist file for ANGLE. 2019-02-28 15:47:54 +00:00
additional_readme_paths.json Use xxHash for faster hash map lookups. 2018-11-20 16:37:07 +00:00
codereview.settings Add "DIFF_LINES_OF_CONTEXT: 1" to fix format issue 2019-10-17 11:56:10 +00:00
dotfile_settings.gni Remove Vulkan repos from exec script whitelist. 2019-10-20 16:26:45 +00:00

README.md

ANGLE - Almost Native Graphics Layer Engine

The goal of ANGLE is to allow users of multiple operating systems to seamlessly run WebGL and other OpenGL ES content by translating OpenGL ES API calls to one of the hardware-supported APIs available for that platform. ANGLE currently provides translation from OpenGL ES 2.0 and 3.0 to desktop OpenGL, OpenGL ES, Direct3D 9, and Direct3D 11. Support for translation from OpenGL ES to Vulkan is underway, and future plans include compute shader support (ES 3.1) and MacOS support.

Level of OpenGL ES support via backing renderers

Direct3D 9 Direct3D 11 Desktop GL GL ES Vulkan
OpenGL ES 2.0 complete complete complete complete complete
OpenGL ES 3.0 complete complete complete in progress
OpenGL ES 3.1 in progress complete complete in progress
OpenGL ES 3.2 planned planned planned

Platform support via backing renderers

Direct3D 9 Direct3D 11 Desktop GL GL ES Vulkan
Windows complete complete complete complete complete
Linux complete complete
Mac OS X complete
Chrome OS complete planned
Android complete complete
Fuchsia in progress

ANGLE v1.0.772 was certified compliant by passing the ES 2.0.3 conformance tests in October 2011. ANGLE also provides an implementation of the EGL 1.4 specification.

ANGLE is used as the default WebGL backend for both Google Chrome and Mozilla Firefox on Windows platforms. Chrome uses ANGLE for all graphics rendering on Windows, including the accelerated Canvas2D implementation and the Native Client sandbox environment.

Portions of the ANGLE shader compiler are used as a shader validator and translator by WebGL implementations across multiple platforms. It is used on Mac OS X, Linux, and in mobile variants of the browsers. Having one shader validator helps to ensure that a consistent set of GLSL ES shaders are accepted across browsers and platforms. The shader translator can be used to translate shaders to other shading languages, and to optionally apply shader modifications to work around bugs or quirks in the native graphics drivers. The translator targets Desktop GLSL, Direct3D HLSL, and even ESSL for native GLES2 platforms.

Sources

ANGLE repository is hosted by Chromium project and can be browsed online or cloned with

git clone https://chromium.googlesource.com/angle/angle

Building

View the Dev setup instructions.

Contributing