DirectX SDK

D3DSTATEBLOCKTYPE

The D3DSTATEBLOCK enumerated type defines logical groups of device states, for use with the IDirect3DDevice7::CreateStateBlock method.

typedef enum _D3DSTATEBLOCKTYPE{
    D3DSBT_ALL           = 1, 
    D3DSBT_PIXELSTATE    = 2, 
    D3DSBT_VERTEXSTATE   = 3, 
    D3DSBT_FORCE_DWORD   = 0xffffffff
} D3DSTATEBLOCKTYPE;
D3DSBT_ALL
Capture all device states.
D3DSBT_PIXELSTATE
Capture only pixel-related device states.
D3DSBT_VERTEXSTATE
Capture only vertex-related device states.
D3DSBT_FORCE_DWORD
Forces this enumeration to compile to 32 bits in size. This value is not used.

Remarks

The D3DSBT_PIXELSTATE and D3DSBT_VERTEXSTATE values identify different logical groups of device states, though some states are common to both groups. For information about the states defined by each group, see Creating Predefined State Blocks.

Requirements

  Windows NT/2000: Requires Windows NT 4.0 SP3 or later.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Windows CE: Unsupported.
  Version: Requires DirectX 7.0.
  Header: Declared in d3dtypes.h.

See Also

IDirect3DDevice7::CreateStateBlock