Original Post
I'm having problems with declaring my vertex declarations. If I want to send 2 texture coordinates to my vertex shader how would I declare them. The code below is not working correctly (I'm not sure about the first 2 parameters for each). const D3DVERTEXELEMENT9 declQuad[4] = { {0, 0, D3DDECLTYPE_FLOAT3, D3DDECLMETHOD_DEFAULT, D3DDECLUSAGE_POSITION, 0}, {0, 12, D3DDECLTYPE_FLOAT2, D3DDECLMETHOD_DEFAULT, D3DDECLUSAGE_TEXCOORD, 0}, {0, 24, D3DDECLTYPE_FLOAT2, D3DDECLMETHOD_DEFAULT, D3DDECLUSAGE_TEXCOORD, 1}, D3DDECL_END() }; Also, would I need to specify more stream sources? At the moment I have, pd3dDevice->SetStreamSource(0, pVertexBuffer, 0, sizeof(QUADCUSTOMVERTEX)); My QUADCUSTOMVERTEX looks like this: struct QUADCUSTOMVERTEX { D3DXVECTOR3 position; float tu, tv; float col; }; QuadFVF = D3DFVF_XYZ|D3DFVF_TEX1|D3DFVF_TEX2; Thanks