?/TD>
Microsoft DirectX 9.0

Texture Stage States


Texture stage states control texture coordinate generation and texture coordinate state such as wrapping modes.

Applications written in C++ control the characteristics of the texture-related render states by invoking the IDirect3DDevice9::SetTextureStageState method. The D3DTEXTURESTAGESTATETYPE enumerated type specifies all the possible texture-related rendering states. Your application passes a value from the D3DTEXTURESTAGESTATETYPE enumeration as the first parameter to the IDirect3DDevice9::SetTextureStageState method.

Applications set the texture for a stage by calling the IDirect3DDevice9::SetTexture method.

SetTextureStageState

SetTextureStageState now sets the following states.

D3DTSS_TEXCOORDINDEX is a fixed function vertex processing state. If a programmable vertex shader is used, this state is ignored.

The number of texture samplers available to the application is determined by the pixel shader version.

For more information about texture blending, see Texture Blending.



© 2002 Microsoft Corporation. All rights reserved.