   How to specify texture?
  In dx9, vertices' declaration with more than one texture coordinate (using D3DDECLUSAGE_TEXCOORD), if the second one is for texture maping. How to realise texure mapping not in shader. e.g. D3DVERTEXELEMENT9 treeVertexDecl[] ={{ 0, 0,D3DDECLTYPE_FLOAT3,D3DDECLMETHOD_DEFAULT,D3DDECLUSAGE_POSITION,0 },{ 0, 3 * 4,D3DDECLTYPE_FLOAT3,D3DDECLMETHOD_DEFAULT,D3DDECLUSAGE_NORMAL,0 },{ 0, 6 * 4,D3DDECLTYPE_FLOAT2,D3DDECLMETHOD_DEFAULT,D3DDECLUSAGE_TEXCOORD,0 },{ 0, 8 * 4,D3DDECLTYPE_FLOAT2,D3DDECLMETHOD_DEFAULT,D3DDECLUSAGE_TEXCOORD,1 },{ 0, 10* 4,D3DDECLTYPE_FLOAT3,D3DDECLMETHOD_DEFAULT,D3DDECLUSAGE_TEXCOORD,2 },D3DDECL_END()};The second texture coordinate is for texture mapping, how to set it in fix pipe not in shader, thank you.   
  Assign the texture(s) you want with IDirect3DDevice9::SetTexture and configure them using IDirect3DDevice9::SetTextureStageState.The texture stage state "D3DTSS_TEXCOORDINDEX" allows you to specify which texture coordinates to use for the given texture stage.;Thank you.   