Sign in to follow this  
Quat

d3d10 restart strip

Recommended Posts

I vaguely recalling some ID value to write in a vertex buffer to restart a triangle strip, but I cannot find it in the SDK now. Does anyone have the SDK page link, or can explain how it is done?

Share this post


Link to post
Share on other sites
AFAIK this works only when you use an index buffer. You have to add the strip cutter to the index buffer. D3D10_16BIT_INDEX_STRIP_CUT_VALUE and D3D10_32BIT_INDEX_STRIP_CUT_VALUE should be the right values for this. I haven’t test it by my own.
If you want doing it with the vertex buffer only you need the geometry shader to detected your special values and use RestartStrip.

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