Where in XNA 4.0 one can go:
myVertexBuffer.VertexCount;
What is the best way to count the number of vertices in 3.1 for a dynamic buffer (i.e. where I do not know the number of elements that could be therein). I have come up with:
myVertexBuffer.SizeInBytes / VertexPositionNormalTexture.SizeInBytes
Where my vertices are VertexPositionNormalTexture's, but is this the best way? (it will be called often in Draw()).