DirectX SDK |
The Direct3DDevice7.EndStateBlock method signals Direct3D to stop recording a device state block and retrieve the block handle.
object.EndStateBlock( _ blockHandle As Long)
If the method fails, an error is raised and Err.Number may be set to DDERR_INVALIDPARAMS to indicate that the blockHandle parameter is invalid or that the Direct3DDevice7.BeginStateBlock method has not been called.
Direct3DDevice7.ApplyStateBlock, Direct3DDevice7.BeginStateBlock, Direct3DDevice7.CaptureStateBlock, Direct3DDevice7.CreateStateBlock, Direct3DDevice7.DeleteStateBlock, State Blocks