DirectX SDK |
The Direct3DDevice7.CaptureStateBlock method updates the values within an existing state block to the values currently set for the device.
object.CaptureStateBlock( _ blockHandle As Long)
If the method fails, an error is raised and Err.Number may be set to one of the following error codes:
D3DERR_INBEGINSTATEBLOCK |
D3DERR_INOVERLAYSTATEBLOCK |
This method captures updated values for states within an existing state block. It does not capture the entire state of the device. For more information, see Capturing State Blocks.
Direct3DDevice7.ApplyStateBlock, Direct3DDevice7.BeginStateBlock, Direct3DDevice7.CreateStateBlock, Direct3DDevice7.EndStateBlock, Direct3DDevice7.DeleteStateBlock, State Blocks