On 9 September 2010 02:40, Misha Koshelev misha680@gmail.com wrote:
- while (count < MAX_FVF_DECL_SIZE && (count == 0 || declaration[count-1].Stream != 0xFF))
- {
count++;- }
- if (count > 1)
- {
vertex_size = declaration[count-2].Offset + d3dx_decltype_size[declaration[count-2].Type];- }
You may want to consider using D3DXGetDeclVertexSize() there.