PDA

View Full Version : problems with gl_FragData[x] and NVidia



SKoder
04-24-2006, 07:56 AM
I have a shader that outputs to 2 colors

uniform sampler2D s_texture_0;
varying vec2 v_TexC0;

void main()
{ vec3 bump = texture2D(s_texture_0, v_TexC0.xy).xyz * 2.0 - 1.0;
gl_FragData[0] = vec4(bump, 1.0);
gl_FragData[1] = vec4(v_TexC0, 0.0, 1.0);
}On ATI cards everything just fine, but after I test it on NVidia I get these errors:


Fragment info
-------------
<stdlib>(9311) : error C5102: semantics attribute "COLOR" has too big of a numeric index (1)
<stdlib>(9311) : error C5102: semantics attribute "COLOR" has too big of a numeric index (2)
<stdlib>(9311) : error C5102: semantics attribute "COLOR" has too big of a numeric index (3)
<stdlib>(9311) : error C5041: cannot locate suitable resource to bind parameter "<null atom>"
<stdlib>(9311) : error C5041: cannot locate suitable resource to bind parameter "<null atom>"
<stdlib>(9311) : error C5041: cannot locate suitable resource to bind parameter "<null atom>"What's the problem?

Gong
04-24-2006, 08:07 AM
What's your card and driver? I have no problem on 7800GT + 84.xx

SKoder
04-24-2006, 08:34 AM
FX5500
78.01

Trahern
04-24-2006, 09:12 AM
Originally posted by SKoder:
FX5500
78.01 FX line does not support multiple render targets ( to be more precise it supports them but with the limitation of max 1 render target :) )