Quote:Original post by sirob
IDirect3DDevice9::GetFVF?
Thank you for the reply, Sirob. If you noted my first post (last part), when I do GetFVF() it returns 0x42, which means 16 bytes. But the stride given to me by the user is only 12 bytes. This is how I first noted the error. If I just give the function to DrawPrimitivesUP() directly, it works.
But I'm trying to avoid using DrawPrimitivesUP(). I want to do the vertex processing in software and want to get the output vertices. So, back to the question: Is there a way I can get the FVF from the user-provided stride, user-provided buffer and the current pipeline state?
There must be a way, since DirectX can do DrawPrimitivesUP() itself. :)
Thank you once again for your time, DX Gurus,
Madiyaan.