![]() |
![]() |
![]() |
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:
- Render state: D3DRS_FOGDENSITY
- Render state: D3DRS_FOGSTART
- Render state: D3DRS_FOGEND
- Texture state: D3DTSS_TEXCOORDINDEX
- Texture state: D3DTSS_TEXTURETRANSFORMFLAGS
Enumerated Type Information
Header d3d9types.h Minimum operating systems Windows 98
See Also
IDirect3DDevice9::CreateStateBlock