Jump to content
  • Advertisement
Sign in to follow this  
lomateron

geometry shader error

This topic is 2101 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

This geometry shader isn't working, what i think i am doing is getting 2 vertex and ouputting them.

[maxvertexcount(2)]
void GSr( line PS_TXr input[2], inout LineStream<PS_TXr> lin )
{
}

the errors says

1*unknown attribute maxvertexcount, or attribute invalid for this statement, valid attributes are: clipplanes
2*'GSr': input parameter cannot have geometry specifier

I am drawing to a texture2D with typology linelist, only 2 vertex( draw(2,0) ).

Share this post


Link to post
Share on other sites
Advertisement
sorry I find the mistake, its very stupi:

SetGeometryShader(CompileShader( vs_4_0, GSr() ) ); // note the "vs" its "gs"

SetGeometryShader(CompileShader( gs_4_0, GSr() ) );

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!