The easiest way to render anaglyph in DirectX is to use the D3DRS_COLORWRITEENABLE renderstate, which controls which colour channels of the backbuffer you'll write to (the remaining channels are left unchanged).
So for red-cyan anaglyph, you might do something like this:
Code:
// only write to the backbuffer's red channel
DEVICE->SetRenderState(D3DRS_COLORWRITEENABLE, D3DCOLORWRITEENABLE_RED);
// (draw left view here)
// only write to the backbuffer's green and blue channels
DEVICE->SetRenderState(D3DRS_COLORWRITEENABLE, D3DCOLORWRITEENABLE_GREEN|D3DCOLORWRITEENABLE_BLUE);
// (draw right view here)