Results 1 to 4 of 4

Thread: problems with gl_FragData[x] and NVidia

  1. #1
    Member Newbie
    Join Date
    Sep 2004
    Location
    Latvija, Riga
    Posts
    32

    problems with gl_FragData[x] and NVidia

    I have a shader that outputs to 2 colors
    Code :
    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:

    Code :
     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?

  2. #2
    Junior Member Newbie
    Join Date
    Sep 2004
    Posts
    23

    Re: problems with gl_FragData[x] and NVidia

    What's your card and driver? I have no problem on 7800GT + 84.xx

  3. #3
    Member Newbie
    Join Date
    Sep 2004
    Location
    Latvija, Riga
    Posts
    32

    Re: problems with gl_FragData[x] and NVidia

    FX5500
    78.01

  4. #4
    Member Contributor
    Join Date
    Apr 2005
    Location
    Prague, Czech Republic
    Posts
    87

    Re: problems with gl_FragData[x] and NVidia

    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 )

Similar Threads

  1. Can I read what was written to gl_FragData[] ?
    By prince_polka in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 04-02-2017, 01:14 PM
  2. Can I use something like gl_FragData
    By 4fingers in forum OpenGL: GLSL
    Replies: 1
    Last Post: 06-20-2008, 08:48 AM
  3. NVIDIA 81.85 and gl_FragData
    By Jay Cornwall in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 11-10-2005, 02:21 PM
  4. NV_render_texture_rectangle + gl_FragData[n]
    By imported_dimensionX in forum OpenGL: GLSL
    Replies: 1
    Last Post: 02-17-2005, 05:29 PM
  5. Replies: 2
    Last Post: 07-15-2002, 11:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean