aboutsummaryrefslogtreecommitdiff
path: root/glslang/MachineIndependent/Initialize.cpp
diff options
context:
space:
mode:
authorJohn Kessenich <cepheus@frii.com>2013-11-11 23:29:59 +0000
committerJohn Kessenich <cepheus@frii.com>2013-11-11 23:29:59 +0000
commitbd1a5b7727ea8f7c49c4515576e0e54c53b697bb (patch)
tree0a0d298c24d09dbe4a0358bd909107ef8a89bd44 /glslang/MachineIndependent/Initialize.cpp
parent99296369d308f7573966c30de12026b4c7e49983 (diff)
downloadglslang-bd1a5b7727ea8f7c49c4515576e0e54c53b697bb.tar.gz
Add GL_OES_EGL_image_external. Includes new keyword, type, name mangling, built-in function calls, etc.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@24007 e7fa87d3-cd2b-0410-9028-fcbf551c1848
Diffstat (limited to 'glslang/MachineIndependent/Initialize.cpp')
-rw-r--r--glslang/MachineIndependent/Initialize.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/glslang/MachineIndependent/Initialize.cpp b/glslang/MachineIndependent/Initialize.cpp
index 6c600b2c..be3726fc 100644
--- a/glslang/MachineIndependent/Initialize.cpp
+++ b/glslang/MachineIndependent/Initialize.cpp
@@ -686,6 +686,15 @@ void TBuiltIns::initialize(int version, EProfile profile)
"\n");
}
+ if (profile == EEsProfile) {
+ // GL_OES_EGL_image_external, caught by keyword check
+ commonBuiltins.append(
+ "vec4 texture2D(samplerExternalOES, vec2 coord);"
+ "vec4 texture2DProj(samplerExternalOES, vec3);"
+ "vec4 texture2DProj(samplerExternalOES, vec4);"
+ "\n");
+ }
+
//
// Noise functions.
//