Microsoft DirectX 8.1 (C++) |
Defines logical groups of device states.
typedef enum _D3DSTATEBLOCKTYPE { D3DSBT_ALL = 1, D3DSBT_PIXELSTATE = 2, D3DSBT_VERTEXSTATE = 3, D3DSBT_FORCE_DWORD = 0xffffffff } D3DSTATEBLOCKTYPE;
All current render states. | All current clipplanes. |
All current texture stage states. | The current material. |
All current textures. | All current lights and enabled light parameters. |
The current palette. | The current pixel shader. |
All current streams. | The current pixel shader constants. |
The current viewport. | The current vertex shader. |
All current transforms. | The current vertex shader constants. |
Render States
Texture Stage States
Render States
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 IDirect3DDevice8::DrawPrimitive without incurring the performance penalty of capturing the entire state.
Header: Declared in D3d8types.h.