Sign in to follow this  

About D3DCAPS9::MaxVertexIndex.

This topic is 3150 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

D3DCAPS9::MaxVertexIndex indicates the max vertex index we can use. But I don't know what the index actually means. Is it the max number in index buffer or the final index used in DrawIndexedPrimitive offseted by BaseVertexIndex? Help!

Share this post


Link to post
Share on other sites
It's the maximum numerical value that an index in an index buffer can have. In other words, it's the maximum size a vertex buffer can be.

Share this post


Link to post
Share on other sites
I think that device may index much larger vertex buffer with BaseVertexIndex in DrawIndexedPrimitive(). With BaseVertexIndex, we may draw only a smaller part of a larger vertex buffer. Any other idears?

Share this post


Link to post
Share on other sites
I try to merge several vertex buffer into a bigger buffer to minimize state change. This bigger buffer likely contains more vertices than MaxVertexIndex. When DrawIndexedPrimitive() is called, I pass BaseVertexIndex to offset vertex index. Is it possible? What does MaxVertexIndex mean? Is it max count of vertex buffer or the final index offseted by BaseVertexIndex?

Share this post


Link to post
Share on other sites
I understood MaxVertexIndex to be the maximum index that you can put into an index buffer. If the driver only supports 16-bit indices then that value will be 65535, but if the driver supports 32-bit indices, that value will be between 65536 and 2^32. I didn't think that the MaxVertexIndex mattered for offsets from BaseVertexIndex, but I could be wrong.

I'll try to find out...

Share this post


Link to post
Share on other sites
I have tried. I merged several meshes' vertex buffers into one large buffer which contains more than MaxVertexIndex vertices. With DrawIndexedPrimitive()'s BaseVertexIndex, meshes were drawed correctly. I hope that someone could do more careful test.

Share this post


Link to post
Share on other sites
I don't know if you've seen this...

Go to:
"http://msdn.microsoft.com/en-us/library/bb219721.aspx"

and search for "MaxVertexIndex"

Share this post


Link to post
Share on other sites
Quote:
Original post by ddlox
I don't know if you've seen this...

Go to:
"http://msdn.microsoft.com/en-us/library/bb219721.aspx"

and search for "MaxVertexIndex"
That doesn't really explain if BaseVertexIndex affects this value though.

Share this post


Link to post
Share on other sites

This topic is 3150 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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