?/TD>
Microsoft DirectX 9.0

Instruction Flow


Pixel shader versions 1_1, 1_2, and 1_3 allow four types of Pixel Shader 1_X. The instructions must appear in the order shown below.

Pixel shader instruction flow diagram for versions 1_1 to 1_3

Pixel shader version 1_4 adds a phase instruction that allows double the number of texture addressing and arithmetic instructions. The shader is separated into phase 1 and phase 2 by a phase marker. Each phase begins with up to six texture instructions, followed by up to eight arithmetic instructions. If a shader does not contain a phase marker, the shader behaves as if all the instructions are phase 2 instructions.

Pixel shader instruction flow diagram for version 1_4

The structure of a pixel shader version 1_4 shader is therefore:

The unfortunate side-effect of the phase transition is that the alpha component of temporary registers are unset or uninitialized during the transition. For additional information, see the phase instruction.



© 2002 Microsoft Corporation. All rights reserved.