|
Implement ES2 backend for Angle translator.
With this CL, we have the option to select a code output backend: GLSL, GLSL ES, or HLSL.
Note that we always emit the highest supported float precision for fragment shader due to anglebug 168. Although this is a temporary solution, it's not against GLSL ES spec, because it's ok for implementation to upgrade precision.
Tested with WebGL conformance test suite, GLES2 conformance test suite (only failed 2/1198), and a few webgl demos, including worlds of webgl, aquarium, etc.
anglebug=81
test=translator emitting correct GLSL ES code when ES2 backend is selected.
Committed: http://code.google.com/p/angleproject/source/detail?r=687
Total comments: 6
Total comments: 5
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+981 lines, -752 lines) |
Patch |
|
M |
CONTRIBUTORS
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
include/GLSLANG/ShaderLang.h
|
View
|
|
3 chunks |
+12 lines, -2 lines |
0 comments
|
Download
|
|
M |
samples/translator/translator.cpp
|
View
|
1
2
|
4 chunks |
+26 lines, -8 lines |
0 comments
|
Download
|
|
M |
src/build_angle.gyp
|
View
|
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/common/version.h
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/compiler/CodeGenGLSL.cpp
|
View
|
|
1 chunk |
+11 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/compiler/CodeGenHLSL.cpp
|
View
|
|
1 chunk |
+8 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/compiler/Compiler.cpp
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/compiler/ExtensionBehavior.h
|
View
|
|
1 chunk |
+16 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/compiler/OutputESSL.h
|
View
|
1
|
1 chunk |
+21 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/compiler/OutputESSL.cpp
|
View
|
|
1 chunk |
+22 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/compiler/OutputGLSL.h
|
View
|
|
2 chunks |
+4 lines, -35 lines |
0 comments
|
Download
|
|
M |
src/compiler/OutputGLSL.cpp
|
View
|
|
1 chunk |
+2 lines, -695 lines |
0 comments
|
Download
|
|
A |
src/compiler/OutputGLSLBase.h
|
View
|
|
1 chunk |
+53 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/compiler/OutputGLSLBase.cpp
|
View
|
1
|
1 chunk |
+713 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/compiler/ParseHelper.h
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/compiler/ShHandle.h
|
View
|
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
|
M |
src/compiler/ShaderLang.cpp
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
A |
src/compiler/TranslatorESSL.h
|
View
|
1
|
1 chunk |
+23 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/compiler/TranslatorESSL.cpp
|
View
|
1
|
1 chunk |
+46 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/libGLESv2/Shader.cpp
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
Total messages: 12
|