D3DSTATEBLOCKTYPE
Predefined sets of pipeline state used by state blocks (see State Blocks Save and Restore State).
typedef enum D3DSTATEBLOCKTYPE
{
D3DSBT_ALL = 1,
D3DSBT_PIXELSTATE = 2,
D3DSBT_VERTEXSTATE = 2,
D3DSBT_FORCE_DWORD = 0xffffffff,
} D3DSTATEBLOCKTYPE, *LPD3DSTATEBLOCKTYPE;
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. Without this value, some compilers would allow this enumeration to compile to a size other than 32 bits. 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
See Also
IDirect3DDevice9::CreateStateBlock, IDirect3DDevice9::CreateStateBlock