D3DSTATEBLOCKTYPE
Microsoft DirectX 9.0 SDK Update (October 2004)

D3DSTATEBLOCKTYPE Enumerated Type


Predefined sets of pipeline state used by state blocks (see State Blocks Save and Restore State).

Syntax

typedef enum _D3DSTATEBLOCKTYPE {
    D3DSBT_ALL = 1,
    D3DSBT_PIXELSTATE = 2,
    D3DSBT_VERTEXSTATE = 2,
    D3DSBT_FORCE_DWORD = 0xffffffff
} D3DSTATEBLOCKTYPE;

Constants

D3DSBT_ALL

Capture the current device state.

D3DSBT_PIXELSTATE

Capture the current pixel state.

D3DSBT_VERTEXSTATE

Capture the current vertex state.

D3DSBT_FORCE_DWORD

Forces this enumeration to compile to 32 bits in size. This value is not used.

Remarks

As the diagram below shows, vertex and pixel state are both subsets of device state.

There are only a few states that are considered both vertex and pixel state. These states are:

Enumerated Type Information

Headerd3d9types.h
Minimum operating systems Windows 98

See Also

IDirect3DDevice9::CreateStateBlock


© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.