?/TD>
Microsoft DirectX 9.0

ps (Pixel Shader)


This instruction specifies the shader version number and works on all shader versions.

Syntax

ps_mainVer_subVer

Input Arguments

Input arguments contain a single main version number with a single sub version number. The allowable combinations are listed in the table below.

Main versionsSub versions
1 1, 2, 3, 4
2 0, x (extended), sw (software)
3 0, sw (software)

Remarks

Pixel shader versions1_11_21_31_42_02_x2_sw3_03_sw
psxxxxxxxxx

This instruction must be the first non-comment instruction in a pixel shader.

Hardware accelerated versions of the software (versions without _sw in the version number), can process vertices with hardware accelearation or use software vertex processing. Software versions (versions with _sw in the version number) process vertices only with software.

Examples

This partial example declares a version 1_1 pixel shader.

ps_1_1

This partial example declares a version 1_4 pixel shader.

ps_1_4


© 2002 Microsoft Corporation. All rights reserved.