D3DSTATEBLOCKTYPE
This enumeration defines logical groups of device states.
typedef enum _D3DSTATEBLOCKTYPE {
D3DSBT_ALL = 1,
D3DSBT_PIXELSTATE = 2,
D3DSBT_VERTEXSTATE = 3,
D3DSBT_FORCE_DWORD = 0xffffffff
} D3DSTATEBLOCKTYPE;
Constants
D3DSBT_ALL
Capture all of the following device states.All current render states. All current clip planes. All current texture stage states. The current material. All current textures. All current lights and enabled light parameters. The current palette. All current streams. The current viewport. The current vertex shader. All current transforms. D3DSBT_PIXELSTATE
Captures the following pixel-related device states.Render States
Texture Stage States
D3DSBT_VERTEXSTATE
Capture all the current lights, the current vertex shader, and the texture stage states specified by D3DTSS_TEXCOORDINDEX and D3DTSS_TEXTURETRANSFORMFLAGS. In addition, this flag captures all of the following vertex-related device states.Render States
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 IDirect3DDevice8::DrawPrimitive without incurring the performance penalty of capturing the entire state.
Requirements
OS Versions: Windows CE .NET 4.0 and later.
Header: D3d8types.h.
See Also
IDirect3DDevice8::CreateStateBlock | IDirect3DDevice8::DrawPrimitive
Last updated on Thursday, April 08, 2004
© 1992-2003 Microsoft Corporation. All rights reserved.