Microsoft DirectX 8.1 (Visual Basic)

Direct3DDevice8.EndStateBlock

Signals Microsoft® Direct3D® to stop recording a device-state block and retrieve a handle to the state block.

object.EndStateBlock() As Long

Parts

object
Object expression that resolves to a Direct3DDevice8 object.

Return Values

Variable to be filled with the handle to the completed device state block. This value is used with the Direct3DDevice8.ApplyStateBlock and Direct3DDevice8.DeleteStateBlock methods.

Error Codes

If the method fails, an error is raised and Err.Number can be set to D3DERR_INVALIDCALL to indicate that the return value is invalid or that the Direct3DDevice8.BeginStateBlock method has not been called.

For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.

See Also

Direct3DDevice8.ApplyStateBlock, Direct3DDevice8.BeginStateBlock, Direct3DDevice8.CaptureStateBlock, Direct3DDevice8.CreateStateBlock, Direct3DDevice8.DeleteStateBlock