Microsoft DirectX 8.1 (C++)

Applying State Blocks

The IDirect3DDevice8::ApplyStateBlock method applies an existing state block to the device. The ApplyStateBlock method accepts a single parameter, Token, that identifies the state block to apply.

Note  You cannot apply a state block while recording another state block—that is, between calls to IDirect3DDevice8::BeginStateBlock and IDirect3DDevice8::EndStateBlock. Attempts to do so will fail.