?/TD>
Microsoft DirectX 9.0

Pixel Shader Differences


These are the differences between the pixel shader versions.

VersionMaximum number of instructions
1_x8 for version 1_1.

12 for versions 1_2 and 1_3.

14 for version 1_4.
2_064 arithmetic and 32 texture instructions.
2_0 Extended96 minimum, up to 512 maximum. The exact number is specified by D3DCAPS9.PS20Caps.MaxPixelShaderInstructionSlots. See D3DCAPS9.
3_0512 minimum, up to the number of slots in the D3DCAPS9.MaxPixelShader30InstructionSlots (not more than 32768). See D3DCAPS9.

New Features

New features for each version include the following:

Version 3_0

New registers: constant integer, constant Boolean, loop counter, predicate

New modifiers: arbitrary swizzle

Version 2_0 Extended

New registers: constant integer, constant Boolean, loop counter, predicate

New modifiers (with a cap set): arbitrary swizzle

Version 2_0

New instructions:

New registers: constant float, sampler, output color, output depth

New modifiers: negate, partial precision, saturate

Removed co-issuing of instructions

Version 1_X

New instructions:

New registers: constant, temporary, texture, color

New modifiers: instruction modifiers, register modifiers, source register selectors, register write masks



© 2002 Microsoft Corporation. All rights reserved.