State should include at least the following:
- All settings set via SetStreamResource()
- Indices
I have a class whose Draw() function will call SetStreamResource, set Indices and eventually call DrawIndexedPrimitive(). I would like to restore the device state before Draw() returns.
I am looking for something along the lines of GDI's SaveDC()/RestoreDC().