?/TD> |
Microsoft DirectX 9.0 |
Defines logical groups of device states.
Syntax
typedef enum _D3DSTATEBLOCKTYPE { D3DSBT_ALL = 1, D3DSBT_PIXELSTATE = 2, D3DSBT_VERTEXSTATE = 3, D3DSBT_FORCE_DWORD = 0xffffffff } D3DSTATEBLOCKTYPE;
Constants
- D3DSBT_ALL
Capture all of the current device state. This is all of the current vertex and pixel state as shown below.
- D3DSBT_PIXELSTATE
Capture the current pixel-related device states including:
- D3DSBT_VERTEXSTATE
Capture the current vertex-related device states including:
- 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. The union of D3DSBT_PIXELSTATE and D3DSBT_VERTEXSTATE is not equal to D3DSBT_ALL. The D3DSBT_PIXELSTATE and D3DSBT_VERTEXSTATE values enable the capture of these frequently modified states between calls to IDirect3DDevice9::DrawPrimitive without incurring the performance penalty of capturing the entire state.
Enumerated Type Information
Header d3d9types.h Minimum operating systems Windows 98
See Also
IDirect3DDevice9::CreateStateBlock