IDirect3DStateBlock9 interface (d3d9helper.h)

Applications use the methods of the IDirect3DStateBlock9 interface to encapsulate render states.

Inheritance

The IDirect3DStateBlock9 interface inherits from the IUnknown interface. IDirect3DStateBlock9 also has these types of members:

Methods

The IDirect3DStateBlock9 interface has these methods.

 
IDirect3DStateBlock9::Apply

The IDirect3DStateBlock9::Apply method (d3d9helper.h) applies the state block to the current device state.
IDirect3DStateBlock9::Capture

The IDirect3DStateBlock9::Capture method (d3d9helper.h) captures the current value of states that are included in a stateblock.
IDirect3DStateBlock9::GetDevice

The IDirect3DStateBlock9::GetDevice method (d3d9helper.h) gets the device.

Remarks

This interface can be used to save and restore pipeline state. It can also be used to capture the current state.

The LPDIRECT3DSTATEBLOCK9 and PDIRECT3DSTATEBLOCK9 types are defined as pointers to the IDirect3DStateBlock9 interface.

typedef struct IDirect3DStateBlock9 *LPDIRECT3DSTATEBLOCK9, *PDIRECT3DSTATEBLOCK9;

Requirements

Requirement Value
Target Platform Windows
Header d3d9helper.h (include D3D9.h)

See also

Direct3D Interfaces