DirectX SDK |
State block handles are 32-bit values that uniquely identify a cached group of device states, and the associated state values, within the rendering device. These handles are used to apply states to the device, to capture the current state of the rendering device, and to delete the cached states when they are no longer needed.
In C++, you receive a state-block handle when you finish recording a state block by calling the IDirect3DDevice7::EndStateBlock method, and when you capture a predefined set of device state data by calling the IDirect3DDevice7::CreateStateBlock method.
In Visual Basic, you receive a state-block handle when you finish recording a state block by calling the Direct3DDevice7.EndStateBlock method, and when you capture a predefined set of device state data by calling the Direct3DDevice7.CreateStateBlock method.