fred_em

Using GLSL texelFetch() function

Discussion created by fred_em on Jan 18, 2011
Latest reply on Jan 19, 2011 by fred_em

Hi,

I have the following GLSL code:

#version 150 compatibility
#extension GL_EXT_gpu_shader4 : enable

uniform sampler1D tex;

void main(void)
{
  vec4 theValue = texelFetch(tex, 0, 0);
  [...]
}

When I try to use this shader, I get the following compile error:

  error(#202) No matching overloaded function found texelFetch

I'm using an Evergreen card with the latest drivers (10.12).

Thanks,
Fred

 

Outcomes