IDirect3DStateBlock9 interface (d3d9.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 (d3d9.h) method applies the state block to the current device state.
IDirect3DStateBlock9::Capture

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

The IDirect3DStateBlock9::GetDevice (d3d9.h) method 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 d3d9.h (include D3D9.h)

See also

Direct3D Interfaces