Microsoft DirectX 8.1 (Visual Basic) |
Defines logical groups of device states.
Enum CONST_D3DSTATEBLOCKTYPE D3DSBT_ALL = 1 D3DSBT_PIXELSTATE = 2 D3DSBT_VERTEXSTATE = 3 End Enum
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 Direct3DDevice8.DrawPrimitive without incurring the performance penalty of capturing the entire state. For information about the states defined by each group, see Creating Predefined State Blocks.