?/TD>
Microsoft DirectX 9.0

State Blocks


A state block is a group of device states, render states, lighting and material parameters, transformation states, texture stage states, and current texture information. The state block is a snapshot of the device's current state, or it is explicitly recorded. The snapshot can be applied to a device in a single call. Device-state blocks can be optimized by the rendering device to accelerate the common sequences of state changes that your application requires, or they can just make applying device states easier.

In C++, you receive a state-block handle when you finish recording a state block by calling the IDirect3DDevice9::EndStateBlock method, and when you capture a predefined set of device state data by calling the IDirect3DDevice9::CreateStateBlock method.

Additional information is contained in the following topics.

Overviews



© 2002 Microsoft Corporation. All rights reserved.