glslang-zig/glslang/MachineIndependent
Shahbaz Youssefi 8c49d15fbf
Use GLSLANG_ANGLE to strip features to what ANGLE requires
This change strips a few features similar to GLSLANG_WEB but doesn't
remove every detail like the latter.  It also hardcodes profile/version
to core/450.

In particular, TBuiltIns::initialize is specialized to remove most of
what is not supported or won't be supported by ANGLE.  The result of
this function is parsed with TParseContext::parseShaderStrings which is
a performance bottleneck.

This change shaves about 300KB off of ANGLE's binary size and reduces
the cost of SetupBuiltinSymbolTable to nearly a sixth.

Signed-off-by: Shahbaz Youssefi <ShabbyX@gmail.com>
2020-07-08 15:33:20 -04:00
..
preprocessor TPpToken: Fix compiling on clang-10 (#2189) 2020-04-22 08:19:43 -06:00
attribute.cpp Web: Turn off bracket-style attributes, reflection, and IO mapping. 2019-08-20 23:21:55 -06:00
attribute.h HLSL: Fix #1912: add attribute syntax for nonreadable/nonwritable 2019-09-29 19:16:25 -06:00
Constant.cpp Copyright update, mostly to trigger bots again. 2020-03-01 04:51:40 -07:00
gl_types.h Web: Generalize _EXTENSIONS* in SPIR-V back-end. 2019-08-20 23:21:55 -06:00
glslang.m4 GL_EXT_ray_query updates 2020-03-19 16:46:30 -04:00
glslang.y GL_EXT_ray_query updates 2020-03-19 16:46:30 -04:00
glslang_tab.cpp GL_EXT_ray_query updates 2020-03-19 16:46:30 -04:00
glslang_tab.cpp.h GL_EXT_ray_query updates 2020-03-19 16:46:30 -04:00
InfoSink.cpp Non-functional: White space after "//", mostly for copyrights. 2017-01-06 12:34:14 -07:00
Initialize.cpp Use GLSLANG_ANGLE to strip features to what ANGLE requires 2020-07-08 15:33:20 -04:00
Initialize.h Comment out params instead of removing 2019-09-11 08:59:47 -04:00
Intermediate.cpp Add check for DOUBLE in low versions (#2223) 2020-05-18 03:41:52 -06:00
intermOut.cpp Use GLSLANG_ANGLE to strip features to what ANGLE requires 2020-07-08 15:33:20 -04:00
IntermTraverse.cpp Non-functional: White space after "//", mostly for copyrights. 2017-01-06 12:34:14 -07:00
iomapper.cpp Use GLSLANG_ANGLE to strip features to what ANGLE requires 2020-07-08 15:33:20 -04:00
iomapper.h Use GLSLANG_ANGLE to strip features to what ANGLE requires 2020-07-08 15:33:20 -04:00
limits.cpp Web: Turn off includes, independent preprocessing path, fine tune all. 2019-08-20 23:21:56 -06:00
linkValidate.cpp Use GLSLANG_ANGLE to strip features to what ANGLE requires 2020-07-08 15:33:20 -04:00
LiveTraverser.h [lumped builds] Add include guards (#pragma once) to header files that did not have any. 2017-05-10 16:58:38 +03:00
localintermediate.h Use GLSLANG_ANGLE to strip features to what ANGLE requires 2020-07-08 15:33:20 -04:00
parseConst.cpp Fix MSVC build issue - remove invalid character 2020-03-19 15:31:31 -06:00
ParseContextBase.cpp Error assigns to objects of rayQueryEXT type. 2020-03-30 10:24:30 -07:00
ParseHelper.cpp SPV: RelaxedPrecision: use the result precision for texture sampling. 2020-06-30 07:52:05 -06:00
ParseHelper.h Reserve unused std140 uniform block in reflection, and fix uniform block matrix layout (#2041) 2020-05-15 02:26:48 -06:00
parseVersions.h Use GLSLANG_ANGLE to strip features to what ANGLE requires 2020-07-08 15:33:20 -04:00
pch.cpp Use precompiled headers for some glslang projects 2018-10-31 15:38:08 -05:00
pch.h Use precompiled headers for some glslang projects 2018-10-31 15:38:08 -05:00
PoolAlloc.cpp Memory: Mak full explicit destructor functionality, techincally correctly. 2017-11-21 14:32:39 -07:00
propagateNoContraction.cpp Make file formatting comply with POSIX and Unix standards 2020-03-21 03:20:25 -04:00
propagateNoContraction.h [lumped builds] Add include guards (#pragma once) to header files that did not have any. 2017-05-10 16:58:38 +03:00
reflection.cpp Use GLSLANG_ANGLE to strip features to what ANGLE requires 2020-07-08 15:33:20 -04:00
reflection.h Use GLSLANG_ANGLE to strip features to what ANGLE requires 2020-07-08 15:33:20 -04:00
RemoveTree.cpp Non-functional: White space after "//", mostly for copyrights. 2017-01-06 12:34:14 -07:00
RemoveTree.h [lumped builds] Add include guards (#pragma once) to header files that did not have any. 2017-05-10 16:58:38 +03:00
Scan.cpp Add support for extension GL_ARB_vertex_attrib_64bit (#2193) 2020-04-29 06:58:49 -06:00
Scan.h SPV: Fix #1575, fix #1593: Support HLSL #line 2018-12-07 17:36:33 -07:00
ScanContext.h GL_EXT_buffer_reference 2019-01-07 12:36:13 -06:00
ShaderLang.cpp Use GLSLANG_ANGLE to strip features to what ANGLE requires 2020-07-08 15:33:20 -04:00
SymbolTable.cpp Use GLSLANG_ANGLE to strip features to what ANGLE requires 2020-07-08 15:33:20 -04:00
SymbolTable.h Use GLSLANG_ANGLE to strip features to what ANGLE requires 2020-07-08 15:33:20 -04:00
Versions.cpp Fix signed / unsigned mismatch warning (#2266) 2020-06-10 21:41:47 -06:00
Versions.h EXT_ray_tracing requires spv1.4 (#2237) 2020-05-28 09:18:07 -06:00