Original Post
Hi, I'm currently dealing with porting some graphic code made in D3D9 to make it work in D3D8 (arghhh). I'm currently having some trouble porting the vertex declaration used in vertex shader. In d3d9 you just use CreateVertexDeclaration based on the d3dvertexelement9 to get the interface and use it to create vertex shader, while in d3d8 you need to actually write them by yourself. I was wondering if someone knows how to make d3d8 vertex declaration based on the d3d9vertexelement declaration ?