Jump to content

View more

Image of the Day

#ld38 #screenshotsaturday Mimosa Fizz action gif #2 https://t.co/TUzdppvfUL
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

geometry shader error

4: Adsense

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   

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

#2 lomateron   Members   

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