0
votes

In DX9, I can get IDirect3DVertexBuffer9 and Stride using "GetStreamSource" in "DrawIndexedPrimitive". And I want to get more information about Vertex. I want get Vertex Declaration (IDirect3DVertexDeclaration9) of this stream source. How can I fix it?

1

1 Answers

0
votes

If you define your vertex format by IDirect3DDevice9::CreateVertexDeclaration, then you can call IDirect3DVertexDeclaration9::GetDeclaration to retrieve your vertex declaration. if you define your vertex in the old way(the D3D_FVF format), you cannot do that.