Hi,
I am trying to implement texture buffer in my code but my shader gives failure while compilation .
My shader is :
#extension EXT_gpu_shader4 : enable
in vec2 v_texCoord;
uniform samplerBuffer s_texture;
out vec4 Color;
void main()
{
Color = texelFetch(s_texture,v_texCoord,0);
}
The errors are:
Fragment shader failed to compile with the following errors:
ERROR: 0:8: error(#202) No matching overloaded function found texelFetch
ERROR: 0:8: error(#160) Cannot convert from ‘const float’ to ‘out 4-component vector of float’
ERROR: error(#273) 2 compilation errors. No code generated