Sign in to follow this  
AvengerDr

[HLSL] Primitive index inside a pixel shader?

Recommended Posts

Hi, is it possible to know to which triangle/vertex/primitive belongs the pixel currently being computed inside a pixel shader? I think it was not possible to do this under SM2.0 but I am not aware of the latest developments.
Thanks in advance.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this