diff options
author | Chia-I Wu <[email protected]> | 2011-10-23 18:51:06 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2011-11-03 15:09:44 +0800 |
commit | 2903816aadb281716b6c59a5a48aeadb84a08f50 (patch) | |
tree | 23f372e51fdf5da3e37f3c3d8051458e340beed7 /src/glsl/builtins/profiles | |
parent | db73264e1471a594d49ca0bc397cbb6746ee1dce (diff) |
glsl: add support for GL_OES_EGL_image_external
This extension introduces a new sampler type: samplerExternalOES.
texture2D (and texture2DProj) can be used to do a texture look up in an
external texture.
Reviewed-by: Brian Paul <[email protected]>
Acked-by: Jakob Bornecrantz <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glsl/builtins/profiles')
-rw-r--r-- | src/glsl/builtins/profiles/OES_EGL_image_external.frag | 6 | ||||
-rw-r--r-- | src/glsl/builtins/profiles/OES_EGL_image_external.vert | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/glsl/builtins/profiles/OES_EGL_image_external.frag b/src/glsl/builtins/profiles/OES_EGL_image_external.frag new file mode 100644 index 00000000000..71e6af9d351 --- /dev/null +++ b/src/glsl/builtins/profiles/OES_EGL_image_external.frag @@ -0,0 +1,6 @@ +#version 100 +#extension GL_OES_EGL_image_external : enable + +vec4 texture2D(samplerExternalOES sampler, vec2 coord); +vec4 texture2DProj(samplerExternalOES sampler, vec3 coord); +vec4 texture2DProj(samplerExternalOES sampler, vec4 coord); diff --git a/src/glsl/builtins/profiles/OES_EGL_image_external.vert b/src/glsl/builtins/profiles/OES_EGL_image_external.vert new file mode 100644 index 00000000000..71e6af9d351 --- /dev/null +++ b/src/glsl/builtins/profiles/OES_EGL_image_external.vert @@ -0,0 +1,6 @@ +#version 100 +#extension GL_OES_EGL_image_external : enable + +vec4 texture2D(samplerExternalOES sampler, vec2 coord); +vec4 texture2DProj(samplerExternalOES sampler, vec3 coord); +vec4 texture2DProj(samplerExternalOES sampler, vec4 coord); |