Microsoft DirectX 8.1 (C++)

IDirect3DDevice8::DeleteStateBlock

Deletes a previously recorded device-state block.

HRESULT DeleteStateBlock(
  DWORD Token
);

Parameters

Token
[in] Handle to the device-state block to delete, as returned by a previous call to the IDirect3DDevice8::EndStateBlock method.

Return Values

If the method succeeds, the return value is D3D_OK.

If the method fails, the return value can be D3DERR_INVALIDCALL.

Remarks

The value 0xFFFFFFFF is an invalid state block handle.

Applications cannot delete a device-state block while another is being recorded

Requirements

  Header: Declared in D3d8.h.
  Import Library: Use D3d8.lib.

See Also

IDirect3DDevice8::ApplyStateBlock, IDirect3DDevice8::BeginStateBlock, IDirect3DDevice8::CaptureStateBlock, IDirect3DDevice8::CreateStateBlock, IDirect3DDevice8::EndStateBlock