diff options
author | Brian Paul <brianp@vmware.com> | 2010-02-25 19:45:45 -0700 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2010-02-25 20:11:55 -0700 |
commit | 1f2b495b5567897acbd236f302a1e2b9b5faec65 (patch) | |
tree | 5ed40e51c53eabfd2163bd771d60f28063c15e5b /src/mesa/shader/slang/library/slang_common_builtin.gc | |
parent | 1edd444c2e9afadb56df55682ae606b5cefd811c (diff) |
glsl: implement support for GL_EXT_texture_array
GL_EXT_texture_array is different from the existing GL_MESA_texture_array
support in that the former is only supported for GLSL, not fixed-function.
The shadow compare versions of the sampler functions haven't been tested
yet. The non-shadow versions have been tested with a new piglit test.
Diffstat (limited to 'src/mesa/shader/slang/library/slang_common_builtin.gc')
-rw-r--r-- | src/mesa/shader/slang/library/slang_common_builtin.gc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/library/slang_common_builtin.gc b/src/mesa/shader/slang/library/slang_common_builtin.gc index 56de47ee8d..8b7771c284 100644 --- a/src/mesa/shader/slang/library/slang_common_builtin.gc +++ b/src/mesa/shader/slang/library/slang_common_builtin.gc @@ -1769,6 +1769,18 @@ vec4 shadow2DRectProj(const sampler2DRectShadow sampler, const vec4 coord) +//// GL_EXT_texture_array +vec4 texture1DArray(const sampler1DArray sampler, const vec2 coord) +{ + __asm vec4_tex_1d_array __retVal, sampler, coord; +} + +vec4 texture2DArray(const sampler2DArray sampler, const vec3 coord) +{ + __asm vec4_tex_2d_array __retVal, sampler, coord; +} + + // // 8.9 Noise Functions // |