chidu
12-03-2008, 12:41 PM
Hi All,
Im using ATI Radeon 4870.
I have written a shader (GLSL) which looks something like this
void main()
{
float wi[5] = float[5]( 0.01 , 0.02 , 0.03 , 0.04 , 0.05 );
int i;
int j;
for( i = -2; i <= 2; i++ )
{
for( j = -2; j <= 2; j++ )
{
weight = w[i+2] * w[j+2];
...
...
}
}
....
....
gl_FragData[ 0 ] = vec3( 1, 0 , 0 1 );
}
when the above shader is compiled on ATI graphics card I am getting the following error
Not supported when use temporary array indirect index.
Not supported when use temporary array indirect index.
for the line --> weight = w[i+2] * w[j+2];
The same line compiles fine on nVidia Card for opengl and d3d9 but on ATI, the d3d9 is fine but not the opengl.
your help is very much appreciated.
thx
Chidu
Im using ATI Radeon 4870.
I have written a shader (GLSL) which looks something like this
void main()
{
float wi[5] = float[5]( 0.01 , 0.02 , 0.03 , 0.04 , 0.05 );
int i;
int j;
for( i = -2; i <= 2; i++ )
{
for( j = -2; j <= 2; j++ )
{
weight = w[i+2] * w[j+2];
...
...
}
}
....
....
gl_FragData[ 0 ] = vec3( 1, 0 , 0 1 );
}
when the above shader is compiled on ATI graphics card I am getting the following error
Not supported when use temporary array indirect index.
Not supported when use temporary array indirect index.
for the line --> weight = w[i+2] * w[j+2];
The same line compiles fine on nVidia Card for opengl and d3d9 but on ATI, the d3d9 is fine but not the opengl.
your help is very much appreciated.
thx
Chidu