Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


geometry shader error


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 lomateron   Members   -  Reputation: 363

Like
0Likes
Like

Posted 19 September 2012 - 09:43 PM

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) ).

Sponsor:

#2 lomateron   Members   -  Reputation: 363

Like
0Likes
Like

Posted 19 September 2012 - 10:53 PM

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() ) );




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS