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.


can the geometry shader have per-primitive attributes?


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 mv348   Members   -  Reputation: 249

Like
0Likes
Like

Posted 18 January 2013 - 01:03 PM

Lets say you had a list of triangles and you want to associate a particular attribute with each triangle. Is it possible to provide per-primitive attributes to the geometry shader, just as you can give per-vertex attributes to the vertex-shader?

 

Or, could you at least have access to all the attributes of the vertices that make up the primitive?


Edited by mv348, 18 January 2013 - 01:06 PM.


Sponsor:

#2 mhagain   Crossbones+   -  Reputation: 8141

Like
0Likes
Like

Posted 18 January 2013 - 06:08 PM

If you want per-primitive attributes use instancing; that's one of the things that instancing can give you.


It appears that the gentleman thought C++ was extremely difficult and he was overjoyed that the machine was absorbing it; he understood that good C++ is difficult but the best C++ is well-nigh unintelligible.





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