Pixel Shader Differences
Microsoft DirectX 9.0 SDK Update (October 2004)

Pixel Shader Differences


Instruction Slots

Each version supports a different number of maximum instruction slots.

VersionMaximum number of instruction slots
ps_1_14 texture + 8 arithmetic
ps_1_24 texture + 8 arithmetic
ps_1_34 texture + 8 arithmetic
ps_1_46 texture + 8 arithmetic per phase
ps_2_032 texture + 64 arithmetic
ps_2_x96 minimum, and up to the number of slots in D3DCAPS9.PS20Caps.NumInstructionSlots. See PS20Caps.
ps_3_0512 minimum, and up to the number of slots in D3DCAPS9.MaxPixelShader30InstructionSlots. See PS20Caps.

For information about the limitations of software shaders, see Software Shaders.

Flow Control Nesting Limits

ps_1_x Features

New instructions:

See ps_1_1, ps_1_2, ps_1_3, ps_1_4 Instructions.

New registers:

See ps_1_X Registers.

ps_2_0 Features

New features:

New instructions:

New registers:

ps_2_x Features

New features (See PS20Caps.):

New instructions:

New registers:

ps_3_0 Features

New features:

New instructions:

New registers:



© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.