<p>State should include at least the following:</p>

<ul>
<li>All settings set via
SetStreamResource()</li>
<li>Indices</li>
</ul>

<p>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.</p>

<p>I am looking for something along the lines of GDI's SaveDC()/RestoreDC().</p>

Looks like these will do it:
```
```
Microsoft::DirectX::Direct3D::Device::BeginStateBlock
Microsoft::DirectX::Direct3D::Device::EndStateBlock
```
```