Saving All Device States with a StateBlock (Direct3D 9)

A state block can be used to capture all device states (see State Blocks Save and Restore State (Direct3D 9)). The following state elements are included in the device state:

To capture all device states with a state block, specify D3DSBT_ALL when calling IDirect3DDevice9::CreateStateBlock.

State Blocks Save and Restore State