diff options
author | Eric Anholt <[email protected]> | 2012-03-26 14:04:48 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2012-04-09 14:34:27 -0700 |
commit | bb430ced7fb2aa26007637a0907d886716e8ddd6 (patch) | |
tree | 4d0e1754c561d52f1f038d815c8bb6848c4dc359 /src/glsl/builtins/profiles/140.vert | |
parent | 659855252107debc47dbac8ec7985e1024d7ab5c (diff) |
glsl: Add texelFetch(*samplerBuffer) entrypoints to GLSL 1.40.
Fix texelFetch(sampler2DRect) and textureSize(samplerBuffer)
generation to not reference a LOD at the same time because it's easier
than not fixing it.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl/builtins/profiles/140.vert')
-rw-r--r-- | src/glsl/builtins/profiles/140.vert | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glsl/builtins/profiles/140.vert b/src/glsl/builtins/profiles/140.vert index bfef4ed1a41..7aa92402c38 100644 --- a/src/glsl/builtins/profiles/140.vert +++ b/src/glsl/builtins/profiles/140.vert @@ -635,6 +635,10 @@ uvec4 texelFetch(usampler1DArray sampler, ivec2 P, int lod); ivec4 texelFetch(isampler2DArray sampler, ivec3 P, int lod); uvec4 texelFetch(usampler2DArray sampler, ivec3 P, int lod); + vec4 texelFetch( samplerBuffer sampler, int P); +ivec4 texelFetch(isamplerBuffer sampler, int P); +uvec4 texelFetch(usamplerBuffer sampler, int P); + /* texelFetchOffset */ vec4 texelFetchOffset( sampler1D sampler, int P, int lod, int offset); ivec4 texelFetchOffset(isampler1D sampler, int P, int lod, int offset); |