d3dx9: Implement GetNumBytesPerVertex using the vertex declaration.