DirectX SDK

State Blocks

A state block in Direct3D Immediate Mode is a group of device states—render states, lighting and material parameters, transformation states, texture stage states, and current texture information—taken as a snapshot of the device's current state or explicitly recorded, that 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 can simply make applying device states easier.

The following topics in this section describe the key concepts of device state blocks, and provide information about how applications use them: